-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Link color doesn't work anymore in 10.1.0 #29535
Comments
@BKnapen thanks for reporting this! I tried to replicate by adding a paragraph, adding a link, and then changing the color. I found I was able to do so. Can you provide exact replication steps to reproduce this as well as any screenshots or videos showing the issue? Thanks in advance! |
In a traditional/PHP based theme with When I activate an FSE theme, TT1 Blocks and try the link color option in the post editor, the link color option works because a color is assigned to Gutenberg Version 10.1.1 and current trunk 7047eac WordPress 5.7-RC3-50503 |
@nosolosw do you know what changed recently that might have impacted this? |
It looks like this goes back to 9.6 (December 22) when the logic was updated to not enqueue the Global Styles CSS if the theme declared theme.json ― which includes the colors as CSS vars, a requirement for the link color feature to work. I see two paths forward here:
I remember that change aimed to address reports of theme authors in core-editor that found it weird that their themes would have some CSS they can't control and can conflict with its own CSS. I presume that rationale is still valid so I'd go with 1. |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
This is a theme support add_theme_support( 'experimental-link-color' ); expected to work without a JSON file. |
Can't we add a color for the variable in the theme support? I mean similar to the color palette. |
In #29891 we're converting the link to an element ― it'll be no longer a simple color for links, it'll be able to have many more things (color background, typography, etc). Additionally, |
So I've checked this a bit as well and for me it seems the solution is as simple as adding:
to your theme's stylesheet. I think that's a decent fix for an experimental API. Am I missing something? |
Oh I guess the presets styles are not generated anymore. For me this should be fixed and presets styles (CSS variables or not) should be generated properly regardless of how the theme is providing them. (theme.json or theme support flag) |
Setting the "Link color" in the paragraph block editer doesn't work anymore.! prevous versions links color was working since 10.1.0 not any more.
The text was updated successfully, but these errors were encountered: