-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Inserter: add a more pronounced hover effect. #44711
Conversation
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.
Size Change: +89 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
The color contrast doesn't seem great. It looks like it fails AA criterion for small text. Is that something that can be improved? #007cba and #f4f9fc are the hex codes I'm seeing when testing. |
I'm using the Modern color palette which has stronger contrast for the primary blue. Hover is more of a decorative effect, so it's less important, but pushed an update to try and handle color schemes were base contrast might be lower. |
753cdba
to
c3e9529
Compare
right: 0; | ||
border-radius: $radius-block-ui; | ||
opacity: 0.04; | ||
background: var(--wp-admin-theme-color); |
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 think this pseudo element breaks dragging-and-dropping from the inserter in Firefox. (Took me a while to find this! For some reason git blame failed me 😞.)
A simple solution to this would be adding pointer-events: none
to the ::after
pseudo 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.
That's interesting!
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 included a fix in #44631 (and added e2e tests for Firefox).
Currently we are only highlighting the block name on hover in the inserter. This attempts at using a slightly more pronounced effect.