V4.beta Dropdown menu focus/hover style constrast too low for accessibility
See original GitHub issueThe current :focus
/ :hover
styling is almost impossible to see (on some screens) as it is a very subtle change.
I would recommend that the background be darkened slightly to make it better for keyboard-only users to know which .dropdown-item
they have highlighted.
In this screen shot, I have Another Item
focused, and at quick glance (without straining my eyes) I can’t tell which menu item is focused:
Doing the same thing, but adjusting the background color from background-color:#f8f9f8
to background-color:#e8e9e8
makes a big difference in being able to tell which menu item has focus:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:12 (10 by maintainers)
Top Results From Across the Web
[Accessibility] Color contrast and styling for focus, hover, outline
This issue encompasses color contrast and styling for focus, hover, outline. This includes focus, hover, and outline states in/around these components:
Read more >Migrating to v5 - Bootstrap
Track and review changes to the Bootstrap source files, documentation, and components to help you migrate from v4 to v5.
Read more >Accessibility - React
Programmatically managing focus. Our React applications continuously modify the HTML DOM during runtime, sometimes leading to keyboard focus being lost or set ...
Read more >Targeting Menu Elements with Submenus in a Navigation Bar
By extension, drop down menus are merely nested <ul> s. ... by contrast, style anchor tags as not having additional sub items.
Read more >What's New In DevTools (Chrome 98)
Full-page Accessibility tree, more precise changes in the Changes ... However, the loading of the menu items is slow (it takes 6 seconds)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR for the change to
$gray-200
https://github.com/twbs/bootstrap/pull/32754general button focus styling is still a bit on the low contrast side. but specifically for dropdowns, yes you can mix and match links/buttons and i think they look the same styling-wise now