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

chore(admin-ui): Tab-bar color tweak #2584

Merged
merged 2 commits into from
Dec 18, 2023
Merged

chore(admin-ui): Tab-bar color tweak #2584

merged 2 commits into from
Dec 18, 2023

Conversation

chrislaai
Copy link
Contributor

Description

Vendure blue is great so I did a little color tweak to keep us with this clean feel, without too much color.

Screenshots

Before:
image

After:
image

Copy link

netlify bot commented Dec 16, 2023

Deploy Preview for effervescent-donut-4977b2 canceled.

Name Link
🔨 Latest commit 4ebfc57
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-donut-4977b2/deploys/65800019c5c4e6000888bfa4

@michaelbromley
Copy link
Member

Hi Chris - thanks for the suggestion. I do think it looks good using the brighter blue but my main concern is the contrast ratio for accessibility.

With the current color of --color-primary-800, we have in the nav bar a contrast ratio of 6.2.
If we change it to --color-primary-600 then this drops to 2.31

image
image

To me that is more important than the aesthetics of it.

So I would say we should leave that active color as-is. However, I do think that the :hover style for the tab is a great addition - the current hover color is totally wrong.

Could you amend the commit to keep just the change to the tab hover style, and revert the --color-text-active change?

@chrislaai
Copy link
Contributor Author

Hi Chris - thanks for the suggestion. I do think it looks good using the brighter blue but my main concern is the contrast ratio for accessibility.

With the current color of --color-primary-800, we have in the nav bar a contrast ratio of 6.2. If we change it to --color-primary-600 then this drops to 2.31

image image

To me that is more important than the aesthetics of it.

So I would say we should leave that active color as-is. However, I do think that the :hover style for the tab is a great addition - the current hover color is totally wrong.

Could you amend the commit to keep just the change to the tab hover style, and revert the --color-text-active change?

Aha, my bad, I didn't notice that and I already revert.

@michaelbromley michaelbromley merged commit fa7152c into vendure-ecommerce:master Dec 18, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants