-
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
Add background color to menu items being hovered #13732
Conversation
If I'm not mistaken, it feels a little bit darker than the background used for the inserter/switcher pills. Should we align both? Otherwise, LGTM |
Should we add the same hover styles to the block navigation menu? |
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.
LGTM 👍
What's the a11y contrast here? Are we within an acceptable ratio? |
You mean the block toolbar? |
I mean the block hierarchy menu, where we list all the blocks. |
This PR adds some clarity to which menu item you're highlighting. It: - Adds a background color to a menu item hovered - Increases the contrast (opacity) of the keyboard shortcut indicator when hovering - It widens the hit are of the button to go edge to edge It's a relatively small PR, but it's a really nice improvement to have.
b0fb992
to
334b98a
Compare
You're too quick @jasmussen :P I just noticed that the background is not applied on small breakpoints in the more menu. |
Haha ack. I'll make a follow-up PR in a few minutes. |
Actually wait, I think that's intentional. I recall a comment in the JS file where it's commented out because of some performance issue. Let me find it. |
Interesting 🤔 |
* Add background color to menu items being hovered This PR adds some clarity to which menu item you're highlighting. It: - Adds a background color to a menu item hovered - Increases the contrast (opacity) of the keyboard shortcut indicator when hovering - It widens the hit are of the button to go edge to edge It's a relatively small PR, but it's a really nice improvement to have. * Darken other hover colors to match. * Address feedback. * Apply to font size picker too.
* Add background color to menu items being hovered This PR adds some clarity to which menu item you're highlighting. It: - Adds a background color to a menu item hovered - Increases the contrast (opacity) of the keyboard shortcut indicator when hovering - It widens the hit are of the button to go edge to edge It's a relatively small PR, but it's a really nice improvement to have. * Darken other hover colors to match. * Address feedback. * Apply to font size picker too.
This PR adds some clarity to which menu item you're highlighting. It:
It's a relatively small PR, but it's a really nice improvement to have.
Before:
After:
GIF: