cengage / react-magma

https://react-magma.cengage.com
MIT License
21 stars 12 forks source link

A11y Fail: Select - Clearable tab and focus issue #1390

Open orion-cengage opened 3 weeks ago

orion-cengage commented 3 weeks ago

CENG_1964

https://react-magma.cengage.com/version/4.5.0/api/select/#clearable

Issue:

The clear button is nested inside another interactive control with role="button". Focusable elements with an interactive control ancestor (any element that accepts user input such as button or anchor elements) may not be announced by screen readers and may create an empty tab stop. That is, you could tab to the element but the screen reader will not announce its name, role, or state.

I think also results in us getting two focus states at once which is a problem.

image

Suggestion:

Please place the clear button outside of the button that operates the listbox. It can still be positioned visually where it is currently but should not be nested inside the button in the DOM.

silvalaura commented 3 weeks ago

This could affect: