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

Darken header icon color and (informative) user icon to meet 3:1 cont… #12517

Closed
wants to merge 7 commits into from

Conversation

gcamacho079
Copy link
Contributor

…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

@gcamacho079 gcamacho079 added accessibility 👤 features related to accessibility ui 👀 features related to the control panel UI labels Jan 10, 2023
# 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
Comment on lines 704 to 709
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),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary? It looks pretty harsh surrounding the default photo icon, and makes user photos look blurry:

Side-by-side screenshots of the user account menu button, with the existing styles on the left, and the PR’s styles on the right.

(Existing shadow style on the left; PR style in the right.)

Copy link
Contributor Author

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!
Screenshot of dark gray user outline SVG with a very light gray circle border

# 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
@brandonkelly
Copy link
Member

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.

@brandonkelly brandonkelly deleted the a11y/header-icon-color branch February 10, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility 👤 features related to accessibility ui 👀 features related to the control panel UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants