Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* @see template_preprocess_input()
*/
#}
<button{{attributes}}>{{ attributes.value }}<span class="material-symbols-rounded">search</span></button>{{ children }}

<button{{ attributes }}>
{{ attributes.value }}
<span aria-hidden="true" class="material-symbols-rounded">search</span>
</button>{{ children }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any change here other than syntax?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trackleft It's also adding aria-hidden="true" to the span element.


Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
* @see template_preprocess_input()
*/
#}
<button{{attributes.removeClass('btn-primary')}}>
{% set button_label = attributes.value|default('Search'|t) %}
<button{{ attributes.removeClass('btn-primary').setAttribute('aria-label', button_label) }}>
<span class="visually-hidden">{{ button_label }}</span>
{% if az_navbar_fullscreen %}
<span class="az-search-icon" aria-hidden="true"></span>
{% elseif az_header_blue_search %}
<span class="az-search-icon" aria-hidden="true"></span>
<span class="material-symbols-rounded" aria-hidden="true">search</span>
{% else %}
<span class="material-symbols-rounded">search</span>
<span class="material-symbols-rounded" aria-hidden="true">search</span>
{% endif %}
</button>{{ children }}
Loading