Files
element-web/test/unit-tests/components/views/elements/__snapshots__/Dropdown-test.tsx.snap
Florian Duros 625595cb8c Enhance accessibility of dropdown (#30928)
* fix: enhance accessibility of dropdown component by adding tabIndex and improving keyboard navigation

* test: update snapshot

* feat: use tabindex -1

* test: add tests
2025-10-01 13:26:42 +00:00

31 lines
639 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<Dropdown /> renders with placeholder 1`] = `
<DocumentFragment>
<div
class="mx_Dropdown"
>
<div
aria-describedby="id_value"
aria-expanded="false"
aria-haspopup="listbox"
aria-label="Test Dropdown"
aria-owns="id_input"
class="mx_AccessibleButton mx_Dropdown_input mx_no_textinput"
role="button"
tabindex="0"
>
<div
class="mx_Dropdown_option"
id="id_value"
>
Select an option
</div>
<span
class="mx_Dropdown_arrow"
/>
</div>
</div>
</DocumentFragment>
`;