Skip to content
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

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

davidcarlsonberg
Copy link
Contributor

@davidcarlsonberg davidcarlsonberg commented Jun 14, 2019

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.?

@davidcarlsonberg davidcarlsonberg added focus: accessibility Main focus is for accessibility and removed focus: accessibility Main focus is for accessibility labels Jun 14, 2019
Copy link
Member

@tmcconechy tmcconechy left a 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

Copy link
Member

@tmcconechy tmcconechy left a 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.

@davidcarlsonberg davidcarlsonberg changed the title 2026 - Modal tabbing initial focus 2026 - Modal: Tabbing initial focus Jun 17, 2019
@EdwardCoyle
Copy link
Contributor

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:

  • Open http://localhost:4000/components/modal/test-toolbar.html
  • Click "Open Modal"
  • Press Tab key once to move focus to the grid
  • Press Shift + Tab to try and move focus back to the button. See that it doesn't move focus out of the grid.
  • The same occurs when tabbing all the way through all grid cells. It's not possible to then press Tab to get out of the grid and into the Pager bar, or beyond.

Not sure if it's related to this or not... what do you think @tmcconechy ?

@EdwardCoyle EdwardCoyle merged commit f118019 into master Jun 17, 2019
@EdwardCoyle EdwardCoyle deleted the 2026-modal-tabbing-initial-focus branch June 17, 2019 20:31
@tmcconechy
Copy link
Member

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

@EdwardCoyle
Copy link
Contributor

Yeah, seems to be specific to the tabbing in Modals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility: Need a tabbable title in modal dialog
3 participants