Commit 22cd7b8f authored by alexpott's avatar alexpott

Issue #2407739 by mortendk, davidhernandez, rteijeiro, lduerig,...

Issue #2407739 by mortendk, davidhernandez, rteijeiro, lduerig, sivaji@knackforge.com: Remove classes from system templates r*.html.twig
parent dd8f5660
......@@ -369,9 +369,10 @@
var entityElement = $(fieldElement).closest(entityElementSelector);
// In the case of a full entity view page, the entity title is rendered
// outside of "the entity DOM node": it's rendered as the page title. So in
// this case, we must find the entity in the mandatory "content" region.
// this case, we find the main element of the page and use it as a full
// entity ancestor.
if (entityElement.length === 0) {
entityElement = $('.region-content').find(entityElementSelector);
entityElement = $('.js-quickedit-main-content').find(entityElementSelector);
}
var entityInstanceID = entityElement
.get(0)
......
......@@ -70,7 +70,7 @@
{{ page.help }}
<main role="main">
<main role="main" class="js-quickedit-main-content">
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
<div class="layout-content">
......
......@@ -12,4 +12,4 @@
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('form-radios') }}>{{ children }}</div>
<div{{ attributes }}>{{ children }}</div>
......@@ -14,14 +14,8 @@
* @ingroup themeable
*/
#}
{%
set classes = [
'region',
'region-' ~ region|clean_class,
]
%}
{% if content %}
<div{{ attributes.addClass(classes) }}>
<div{{ attributes }}>
{{ content }}
</div>
{% endif %}
......@@ -87,7 +87,7 @@
<div id="main-wrapper" class="layout-main-wrapper layout-container clearfix">
<div id="main" class="layout-main clearfix">
{{ page.breadcrumb }}
<main id="content" class="column main-content" role="main">
<main id="content" class="column main-content js-quickedit-main-content" role="main">
<section class="section">
<a id="main-content" tabindex="-1"></a>
{{ title_prefix }}
......
......@@ -68,7 +68,7 @@
{{ page.help }}
<main role="main">
<main role="main" class="js-quickedit-main-content">
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
<div class="layout-content">
......
......@@ -64,7 +64,7 @@
<div class="layout-container">
{{ page.pre_content }}
{{ page.breadcrumb }}
<main class="page-content clearfix" role="main">
<main class="page-content clearfix js-quickedit-main-content" role="main">
<div class="visually-hidden"><a id="main-content" tabindex="-1"></a></div>
{{ page.highlighted }}
{% if page.help %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment