-
Notifications
You must be signed in to change notification settings - Fork 611
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
Darken header icon color and (informative) user icon to meet 3:1 cont… #12517
Conversation
# Conflicts: # src/web/assets/pluginstore/dist/css/app.css.map # src/web/assets/pluginstore/dist/js/app.js # src/web/assets/pluginstore/dist/js/app.js.map
src/web/assets/cp/src/css/_cp.scss
Outdated
box-shadow: 0 0 0 1px transparentize($grey900, 0.95), | ||
box-shadow: 0 0 0 1px transparentize($grey900, 0.6), | ||
0 0 0 transparentize($grey900, 1); | ||
transition: box-shadow linear 150ms; | ||
|
||
#user-info:hover & { | ||
box-shadow: 0 0 0 1px transparentize($grey900, 0.95), | ||
box-shadow: 0 0 0 1px transparentize($grey900, 0.6), |
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.
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.
@brandonkelly it's unnecessary; I was concerned the user SVG might look strange with the original, lighter box shadow, but it actually seems fine. I've reverted it!
# Conflicts: # src/web/assets/cp/dist/images/user.svg # src/web/assets/cp/src/images/user.svg # src/web/assets/pluginstore/dist/css/app.css.map
I darkened the user icon as part of #12564 (to be consistent with the folder icons), so looks like this PR isn’t actually necessary anymore. |
…rast minimum
Description
When a user doesn’t have an account photo set, the account menu — distinguished via the down arrow in conjunction with the user icon — does not meet the minimum contrast of 3:1 for UI components. This PR darkens both the arrow and the user icon fill so that it’s apparent the button relates to a user’s account settings.
Related issues