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

Focus not visible #676

Open
meldafert opened this issue Jan 2, 2024 · 2 comments
Open

Focus not visible #676

meldafert opened this issue Jan 2, 2024 · 2 comments

Comments

@meldafert
Copy link

Describe the bug
When navigating content with the keyboard with the TAB key, all elements receiving focus should indicate this eg. by showing a visible focus ring.
Since #587, the scrollable area can be focused with the keyboard, however it does not have a visible focus indicator.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Demo page
  2. Use the TAB key (and SHIFT+TAB) to navigate around the page
  3. See that the buttons receive a dotted outline when receiving focus
  4. See that whenever the scrollable container is focus, the focus indicator seemingly vanishes

Expected behavior
It should always be visible which element has focus. When the scrollable container has focus, it should have a visible indicator.

Additional context
WCAG Success Criterion 2.4.7

Your environment

Software Version(s)
SimpleBar 6.2.5
Browser Firefox 121
npm/Yarn N/A
Operating System Linux
@kalnode
Copy link

kalnode commented Apr 17, 2024

Is it actually desired to show a focus ring around a scrollable area?

What happens natively?

@meldafert
Copy link
Author

If it is focusable, it should have a focus ring.
Firefox, which is the only browser currently to make scrollable areas focusable like default (like simplebar does), does show a focus ring when focusing via keyboard.
See this article for more background on the accessibility issues.

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

No branches or pull requests

2 participants