Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/component/hero.twig
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div{{ create_attribute(hero_wrapper_attributes) }}>
{% embed "@hdbt/misc/container.twig" with {container_element: 'hero'} %}
{% block container_content %}
<div class="hero__text-content">
<div class="hero__text-content" {{ is_search ? 'role="search"' }}>
{# Hyphenate the visible title, but share to screen readers unhyphenated version as for example NVDA reads hyphenated text poorly #}
<h1 class="hero__title hyphenate" aria-labelledby="page_title">{{ title }}</h1>
<span class="is-hidden" id="page_title">{{ title }}</span>
Expand Down
Loading