Skip to content

Commit 5f9ce2f

Browse files
authored
Merge pull request #1539 from City-of-Helsinki/UHF-12657
UHF-12657: Added role search for hero block
2 parents 00379ea + 04c2977 commit 5f9ce2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/component/hero.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<div{{ create_attribute(hero_wrapper_attributes) }}>
4949
{% embed "@hdbt/misc/container.twig" with {container_element: 'hero'} %}
5050
{% block container_content %}
51-
<div class="hero__text-content">
51+
<div class="hero__text-content" {{ is_search ? 'role="search"' }}>
5252
{# Hyphenate the visible title, but share to screen readers unhyphenated version as for example NVDA reads hyphenated text poorly #}
5353
<h1 class="hero__title hyphenate" aria-labelledby="page_title">{{ title }}</h1>
5454
<span class="is-hidden" id="page_title">{{ title }}</span>

0 commit comments

Comments
 (0)