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
Toast Notification focuses original element after disappearing #7115
Comments
Hi @lukaw3d -- can you elaborate what you mean by "changing focus"? I believe the intended behavior is to restore focus onto the element that was last in focus before the toast notification opened. This is in alignment with WCAG accessibility best practices. |
Yes, in "Steps to reproduce" it restores focus to "Open Toast Notification". Which accessibility guidelines are you referring to? Modal Dialog? https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/#:~:text=When%20a%20dialog%20closes |
Thank you for clarifying. I would agree that "Toast" which functions like an alert should not change the focused element based on the linked guidance. Adding accessibility and bug labels to this. |
Changing focus after toast notification disappears is disruptive.
Expected Behavior
Don't change focus when toast notification disappears, or make it configurable
Actual Behavior
See steps to reproduce
URL, screen shot, or Codepen exhibiting the issue
See steps to reproduce
Steps to Reproduce
grommet/src/js/components/Layer/Layer.js
Line 31 in 9aee303
Your Environment
The text was updated successfully, but these errors were encountered: