A11Y: Improve group search accessibility (#18651)

This commit is contained in:
Keegan George 2022-10-18 12:55:44 -07:00 committed by GitHub
parent d25ca2a468
commit 8791b6d5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@
{{/if}}
<div class="groups-header-filters">
<Input @value={{readonly this.filter}} placeholder={{i18n "groups.index.all"}} class="groups-header-filters-name no-blur" {{on "input" (action "onFilterChanged" value="target.value")}} />
<Input @value={{readonly this.filter}} placeholder={{i18n "groups.index.all"}} class="groups-header-filters-name no-blur" {{on "input" (action "onFilterChanged" value="target.value")}} @type="search" aria-description={{i18n "groups.index.search_results"}} />
<ComboBox @value={{this.type}} @content={{this.types}} @class="groups-header-filters-type" @onChange={{action (mut this.type)}} @options={{hash
clearable=true
@ -77,7 +77,7 @@
<ConditionalLoadingSpinner @condition={{this.groups.loadingMore}} />
{{else}}
<p>{{i18n "groups.index.empty"}}</p>
<p role="status">{{i18n "groups.index.empty"}}</p>
{{/if}}
</ConditionalLoadingSpinner>

View File

@ -888,6 +888,7 @@ en:
group_type: "Group type"
is_group_user: "Member"
is_group_owner: "Owner"
search_results: "Search results will appear below."
title:
one: "Group"
other: "Groups"