-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
[Bug]: Focus lost after Accept / Reject #475
Comments
Thank you for the sweet issue! |
More info to this: After closing CC window the focus jumps at the very end of html, so next TAB move jumps out of the website to the closest UI. |
Fix lost focus when modal is hidden (close #475)
The fix introduced in #486 seems to have been lost in v2.9.0 and beyond. The Ensuring main container is appended before first child of root/body resolves these sort of issues. |
This should not be closed as the bug is still there.
|
Expected Behavior
When CC window is closed on Accept / Reject etc. and you hit TAB key one more time, you should be focused on the first focusable element inside the website.
Current Behavior
After closing the CC window and hitting TAB key again, focusing starts after the website content - the focus is shifted to browsers UI elements like tabs, status bar etc.. see attached video. Can't access website content. This is a huge accessibility failure. This bug is in Chromium based browsers (Chrome, Vivaldi, Opera..), also in Safari.
Firefox works as expected - hitting TAB focuses the first focusable element.
DEMO:
https://codepen.io/5ulo/pen/JjaYZNv
Chrome - navigating with tab key
https://user-images.githubusercontent.com/4980919/219949890-4efc40c2-1834-4d0f-ae5b-9b4a3be55b3a.mp4
Firefox - navigating with tab key - working
https://user-images.githubusercontent.com/4980919/219949894-393da0d8-b9d7-4230-84a5-16fa8729ae23.mp4
Steps to reproduce
As seen in codepen example
Proposed fix or additional info.
No response
Version
2.8.9, 3 alpha
On which browser do you see the issue?
Chrome
The text was updated successfully, but these errors were encountered: