fix(backdrop): remove tabindex for improved accessibility #29956
+0
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number: resolves #29773
What is the current behavior?
Certain Chrome and Edge versions (confirmed: Chrome v127 and Edge v127) would indicate that the backdrop has an accessibility violation:
The error is happening because
tabindex
andaria-hidden
are being passed toion-backdrop
. Thetabindex
attribute is used to make an element focusable, regardless of value. Whenaria-hidden
is applied to an element, then the element is hidden from screen readers. This violates the accessibility standards sinceion-backdrop
would be considered a focusable element but not visible to screen readers.What is the new behavior?
tabindex
, this aligns with frameworks known for accessibility (Chakra UI)Does this introduce a breaking change?
Other information
Dev build:
8.3.4-dev.11729533091.1ac77a0c
How to test:
main
branchROU-11175
branch