1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

ARIA Accessibility improvements (#10674)

* Add missing aria-expanded attributes

* Improve autoComplete for phone numbers & email addresses

* Fix room summary card heading order

* Fix missing label on timeline search field

* Use appropriate semantic elements for dropdown listbox

* Use semantic list elements in keyboard settings tab

* Use semantic list elements in spotlight

* Fix types and i18n

* Improve types

* Update tests

* Add snapshot test
This commit is contained in:
Michael Telatynski
2023-04-20 18:13:30 +01:00
committed by GitHub
parent 2da52372d4
commit 782060a26e
24 changed files with 611 additions and 157 deletions

View File

@@ -1,12 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<FilterDropdown /> renders dropdown options in menu 1`] = `
<div
<ul
class="mx_Dropdown_menu"
id="test_listbox"
role="listbox"
>
<div
<li
aria-selected="true"
class="mx_Dropdown_option mx_Dropdown_option_highlight"
id="test__one"
@@ -25,8 +25,8 @@ exports[`<FilterDropdown /> renders dropdown options in menu 1`] = `
Option one
</span>
</div>
</div>
<div
</li>
<li
aria-selected="false"
class="mx_Dropdown_option"
id="test__two"
@@ -47,8 +47,8 @@ exports[`<FilterDropdown /> renders dropdown options in menu 1`] = `
with description
</span>
</div>
</div>
</div>
</li>
</ul>
`;
exports[`<FilterDropdown /> renders selected option 1`] = `