bug(COMPONENT): Blocked aria-hidden on an element because its descendant retained focus. #30187
Open
1 task done
Labels
needs triage
This issue needs to be triaged by the team
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: button
Ancestor with aria-hidden: <material-docs-app ng-version="19.0.4" aria-hidden="true">…flex...
also visible when trying the examples in chrome (Version 131.0.6778.109 (Official Build) (arm64))
https://material.angular.io/components/dialog/overview
happens when the dialog has a button...
Reproduction
examples on the material.angular.io:
https://material.angular.io/components/dialog/overview
Expected Behavior
no error
Actual Behavior
works, but shows an error in the console
Environment
The text was updated successfully, but these errors were encountered: