Modal should not let focus leave the components inside the dialog. Also it should autofocus the first component in the dialog (if no autofocus was specified).
More on Modals and keyboard traps:
https://developers.google.com/web/fundamentals/accessibility/focus/using-tabindex
1) Open any modal on the example page: https://react.semantic-ui.com/modules/modal
2) Press tab multiple times
Focus should never enter the dimmed components below
Focus does enter the dimmed components below
Current
Tested in Chrome Version 61.0.3163.100 (Official Build) (64-bit)
Yes, we should impliment focus trap on modal, here is good example. However, it's a low priority enchantment. Contributions are welcome.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
How would I have the priority of this raised?
One consequence of this issue is that Confirm and Modal are not useful in our project.
Thanks!
I think this is a priority, reopening. Thoughts on adding this to the project dependencies?
https://github.com/theKashey/react-focus-lock
We've had luck using it in a few projects at my company.
There has been no activity in this thread for 180 days. While we care about every issue and we鈥檇 love to see this fixed, the core team鈥檚 time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.
However, PRs for this issue will of course be accepted and welcome!
If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!
Most helpful comment
How would I have the priority of this raised?
One consequence of this issue is that
ConfirmandModalare not useful in our project.Thanks!