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

Update background hover color for charcoal-1 nav menus #451

Closed
ndiego opened this issue Sep 19, 2023 · 4 comments · Fixed by #456
Closed

Update background hover color for charcoal-1 nav menus #451

ndiego opened this issue Sep 19, 2023 · 4 comments · Fixed by #456

Comments

@ndiego
Copy link
Member

ndiego commented Sep 19, 2023

When the background of a nav menu is set to --wp--preset--color--charcoal-1: #1e1e1e, such as in the case of Showcase v2, the submenu hover color is set to --wp--preset--color--nero: #1c2024 (reference). While this works well with the default background color of --wp--preset--color--charcoal-2: #1e1e1e, the hover color does not stand out very well when using charcoal-1.

Showcase (charcoal-1 + nero) Other Pages (charcoal-2 + nero)
image image

One possible solution is to set the hover color to charcoal-2.

(charcoal-1 + charcoal-2)
image

If approved, we would need to add the following to this file.

.has-charcoal-1-background-color {
	--wp-global-header--background-color--hover: var(--wp--preset--color--charcoal-2);
}
@ryelle
Copy link
Contributor

ryelle commented Sep 19, 2023

For a little more context, this is the PR that introduced the ability to use a custom color for the block backgrounds. Previously, only white, blueberry-1, and charcoal-2 were supported. It just happens that the defaults work okay with charcoal-1, but any new color really should get some custom CSS to support it.

The CSS in the description should be correct, if that's the route to take. 👍🏻

@ryelle ryelle moved this to 🛑 Pending discussion in WordPress.org Sep 20, 2023
@ndiego
Copy link
Member Author

ndiego commented Sep 26, 2023

@jasmussen @marko-srb any thoughts on this? It would be nice to get updated along with Showcase if this is the direction we want to take. Thanks!

@jasmussen
Copy link
Collaborator

Just to be sure, you're suggesting we use charcoal 2 (bg) + charcoal 1 (menu) for other pages, and charcoal 1 (bg) and charcoal 2 (menu) for showcase? If yes, I agree.

@ndiego
Copy link
Member Author

ndiego commented Sep 26, 2023

Just to be sure, you're suggesting we use charcoal 2 (bg) + charcoal 1 (menu) for other pages, and charcoal 1 (bg) and charcoal 2 (menu) for showcase? If yes, I agree.

Yup exactly. Cool, I'll get a PR together.

@ryelle ryelle moved this from 🛑 Pending discussion to 🏗 In progress in WordPress.org Sep 26, 2023
@ryelle ryelle moved this from 🏗 In progress to ✅ Done in WordPress.org Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants