-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Snackbar: fix focus loss on dismiss #34736
Conversation
Size Change: +28 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
Thanks for working on this Ella! Can you provide some testing instructions and what should I expect to see? I'm trying by running this in
But the focus seems a bit inconsistent both in trunk and in this branch, and I'm not really sure what the expected behavior should be. |
@ntsekouras It works great in my testing:
Click on the notice and focus will be moved to the snackbar list element. |
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.
I tested by checking the document.activeElement
after dismissing a snackbar
notification and the focus is now in the list.
Thanks Ella!
Description
Currently, when you click on a notice to dismiss it, focus is lost because the element disappears. Solution is the move focus to the notice list element.
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).