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
Setting text color on group block overrides link color #61242
Comments
For some odd reason the group block have color customization for a lot of things, but not links. Would be nice if it was there. With that said, I think this is a regression that breaks the style of existing websites. |
This is intentional actually. Otherwise, you have to explicitly change the link color as well, in any instance where you are required to change the text color as well, when the background color applied does not contrast appropriately to the default paragraph color.
Do you not see the Link color control here on the right? |
No, only have text and body. |
It seems that the Link color menu option is only visible in newer themes. I can see it in Twenty Twenty Four and Twenty Twenty Two, but not Twenty Twenty for example. Plugins have no bearing on this, in my case at least. Also not available in GeneratePress (or my child theme of it) but that is of course a third party theme. I understand this change was "by design" but perhaps it should not have been applied to legacy themes, as it breaks existing styles. |
It's not breaking styles, correct? If you apply a text color — it will override the link color. Existing colors applied to existing elements do not get modified, unless you modified them after updating to the version of WordPress that included this. I'll look into why GeneratePress does not support link styling; it should available for every theme. |
Thanks! It is also not available in Twenty Twenty. |
Is |
It also seems that the themes that do not have link color option in the editor do not have a theme.json file. |
Description
Not sure exactly when but in later releases of WordPress, such has 6.4 an onwards all links in group blocks where I set a text color, got the same color as the text, instead of the link color in my theme.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
This is the theme style for links:
This is the offending style from Gutenberg that takes predecense:
Environment info
WordPress: 6.5.2
Theme: Generatepress 3.4.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: