-
Notifications
You must be signed in to change notification settings - Fork 357
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
Livro: button color impossible to override #5693
Comments
There's no CSS for the button block besides for a hover effect on Livro, so I suspect that this would be a Gutenberg issue instead https://github.com/Automattic/themes/blob/trunk/livro/style.css |
Thanks for the feedback. The issue is with the use of |
This should be fixed for Remote, Stewart, Livro and Archeo. I believe they all share the same CSS. |
It looks like it's only Livro that overrides the button link color with I think the bigger problem here is that Gutenberg sets a default color on button links to white, including the hover and visited states. Perhaps we should change the default button link color in Gutenberg from white if a user has selected a custom color. I imagine this is why Livro is setting the color back to Another good solution for this is adding block state (visited, hover etc) controls to Gutenberg (WordPress/gutenberg#27075). |
Here's a related GB issue for styling the button states instead of always falling back to white: WordPress/gutenberg#34448 |
[] - 3403165-hc another instance here. I fixed it with the following code:
|
41186975-hc Gave custom CSS workaround. |
Steps to replicate
I suspect that a CSS rule elsewhere in the cascade is overriding the color setting. I couldn't find out where through the Chrome dev console. Deactivating every other CSS rule in the dev console manually (unchecking) didn't make the color work correctly.
Result
The following CSS is applied. (In the example, the color white has been selected in the styles » color settings for all button blocks.) Although the browser dev console indicates that
color: var(--wp--preset--color--white);
is correctly applied, this is not the color shown.Expected
The color should respect the setting from the styles » color editor.
The text was updated successfully, but these errors were encountered: