We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 00379ea + 04c2977 commit 5f9ce2fCopy full SHA for 5f9ce2f
1 file changed
templates/component/hero.twig
@@ -48,7 +48,7 @@
48
<div{{ create_attribute(hero_wrapper_attributes) }}>
49
{% embed "@hdbt/misc/container.twig" with {container_element: 'hero'} %}
50
{% block container_content %}
51
- <div class="hero__text-content">
+ <div class="hero__text-content" {{ is_search ? 'role="search"' }}>
52
{# Hyphenate the visible title, but share to screen readers unhyphenated version as for example NVDA reads hyphenated text poorly #}
53
<h1 class="hero__title hyphenate" aria-labelledby="page_title">{{ title }}</h1>
54
<span class="is-hidden" id="page_title">{{ title }}</span>
0 commit comments