Description
Is this a regression?
- Yes, this behavior used to work in the previous version
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
- Angular: 18.2
- CDK/Material: 18
- Browser(s): chrome (Version 131.0.6778.109 (Official Build) (arm64))
- Operating System (e.g. Windows, macOS, Ubuntu): mac os