bug(dialog): If starting keyboard navigation from the URL bar - modal is not focused first! #24443
Labels
Accessibility
This issue is related to accessibility (a11y)
area: cdk/dialog
area: material/dialog
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When I am using the app normally and open the popup, I am able to circle through the content in modal window well with my TAB key...
The problem is when I focus my URL input box in browser and then try to cycle with TAB there to the page... the APP under the modal gets focused first and not the modal itself! Once I get to the modal, it stays in the modal correctly and cannot cycle out.
the only solutions to this would be to inject the modal before the app-root, or I did put the tabindex of the app-root to -1 and the modal first element to 1 - seems to do the trick
Reproduction
Steps to reproduce:
Expected Behavior
I expect that when the modal is opened, it gets accessed first with key navigation
Actual Behavior
When starting cycling with TAB key from the url bar, the page under the modal gets accessed first
Environment
The text was updated successfully, but these errors were encountered: