Remove unnecessary ARIA roles from templates
This commit is contained in:
parent
4c29c072b3
commit
38cc716bb1
|
@ -34,7 +34,7 @@
|
||||||
{% set heading_id = attributes.id ~ '-menu'|clean_id %}
|
{% set heading_id = attributes.id ~ '-menu'|clean_id %}
|
||||||
<nav
|
<nav
|
||||||
class="h-full flex items-center"
|
class="h-full flex items-center"
|
||||||
role="navigation"
|
aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}
|
||||||
aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}
|
aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}
|
||||||
>
|
>
|
||||||
{# Label. If not displayed, we still provide it for screen readers. #}
|
{# Label. If not displayed, we still provide it for screen readers. #}
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
|
|
||||||
{{ page.help }}
|
{{ page.help }}
|
||||||
|
|
||||||
<main role="main">
|
<main>
|
||||||
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
||||||
|
|
||||||
<div class="grid grid-cols-1 gap-y-8 md:grid-cols-12 md:gap-x-8">
|
<div class="grid grid-cols-1 gap-y-8 md:grid-cols-12 md:gap-x-8">
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
</div>{# /.layout-content #}
|
</div>{# /.layout-content #}
|
||||||
|
|
||||||
{% if page.sidebar_second %}
|
{% if page.sidebar_second %}
|
||||||
<aside role="complementary" class="sidebar col-span-12 md:col-span-4">
|
<aside class="sidebar col-span-12 md:col-span-4">
|
||||||
{{ page.sidebar_second }}
|
{{ page.sidebar_second }}
|
||||||
</aside>
|
</aside>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{% if page.footer %}
|
{% if page.footer %}
|
||||||
<footer role="contentinfo">
|
<footer>
|
||||||
{{ page.footer }}
|
{{ page.footer }}
|
||||||
</footer>
|
</footer>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
* in different view modes.
|
* in different view modes.
|
||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
<article{{ attributes.addClass('node min-w-full prose') }}>
|
<article{{ attributes.addClass('node min-w-full prose')|without('role') }}>
|
||||||
|
|
||||||
{{ title_prefix }}
|
{{ title_prefix }}
|
||||||
{% if not page %}
|
{% if not page %}
|
||||||
|
|
Loading…
Reference in a new issue