A11Y: Use listbox role for dropdowns (#14391)

This commit is contained in:
Penar Musaraj 2021-09-21 09:31:40 -04:00 committed by GitHub
parent bba973f0d5
commit c13127b024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default Component.extend(UtilsMixin, {
selectKit: null,
role: "application",
role: "listbox",
ariaLevel: 1,

View File

@ -8,7 +8,7 @@ export default SelectKitHeaderComponent.extend(UtilsMixin, {
tagName: "summary",
layout,
classNames: ["single-select-header"],
attributeBindings: ["name"],
attributeBindings: ["name", "name:aria-label"],
focusIn(event) {
event.stopImmediatePropagation();