-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2026 - Modal: Tabbing initial focus #2381
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually rereading this issue this looks fine but what if you disabled the first button like in the issue? Then does it still work ok? Lets try that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok Cool yeah looks like our logic is fine. Must be an issue on their end and now we can prove that.
I'm going to approve since the test demos the case, but I think there's another focus trap surrounding Datagrid inside of Modals we should address:
Not sure if it's related to this or not... what do you think @tmcconechy ? |
Yes that is an issue @EdwardCoyle but i see it not only on this branch. It would be good to make a new issue for later. Note that the mentioned issue doesnt occur on http://localhost:4000/components/datagrid/example-index.html |
Yeah, seems to be specific to the tabbing in Modals |
Explain the details for making this change. What existing problem does the pull request solve?
This new test page serves to demonstrate that the first focused item in a modal with a toolbar and a datagrid is the first non-disabled toolbar button.
Related github/jira issue (required):
Resolves #2026.
Steps necessary to review your pull request (required):
¿- [ ] An e2e or functional test for the bug or feature.?
¿- [ ] A note to the change log.?