Skip to content

Commit 3d721d7

Browse files
committed
style: change aria-label for posts and articles subfilters
1 parent 7b6a700 commit 3d721d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/search_results.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
{{#is current_filter.identifier 'community'}}
7979
<h3 class="collapsible-sidebar-title sidenav-title">{{t 'filter_by_topic'}}</h3>
8080
{{/is}}
81-
<button type="button" class="collapsible-sidebar-toggle" aria-expanded="false" aria-label="{{t 'search_result_subfilter_menu'}}">
81+
<button type="button" class="collapsible-sidebar-toggle" aria-expanded="false" aria-label="{{#is current_filter.identifier 'knowledge_base'}}{{t 'search_result_articles_menu'}}{{else}}{{#is current_filter.identifier 'community'}}{{t 'search_result_posts_menu'}}{{else}}{{t 'search_result_subfilter_menu'}}{{/is}}{{/is}}">
8282
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" focusable="false" viewBox="0 0 12 12" aria-hidden="true" class="collapsible-sidebar-toggle-icon chevron-icon">
8383
<path fill="none" stroke="currentColor" stroke-linecap="round" d="M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5"/>
8484
</svg>

0 commit comments

Comments
 (0)