-
Notifications
You must be signed in to change notification settings - Fork 365
Varia: add experimental link color #3225
Conversation
|
At first I thought I needed to do this, but it's unnecessary because Gutenberg handles applying the custom link styles cleanly. |
|
According to the doc (and mirroring the work in spearhead) I believe the experimental-theme.json will need to be added for this to work correctly. (Otherwise I believe the link colors will not be colored correctly by default.) Which I think will mean that this change will require adding experimental-theme.json to ALL of the Varia children. |
It should work without the theme.json, did you try it? |
|
I think we need the theme.json to set a default color for links... |
scruffian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
After testing more use cases, I think we should only add this theme support to themes that have implemented CSS variables — which is only Hever to my knowledge. My reasoning is because Gutenberg makes use of CSS variables (e.g. Thoughts @scruffian @pbking @MaggieCabrera ? |
|
So what would happen in other themes? Couldn't we just add theme.json to all the child themes? |
I think this would break link colors for themes using a custom palette / color annotations. I'm having trouble getting this to work on dotcom, but it is working locally. It may have to do with the changes to the shape of the theme.json. |
164ffaa to
04047d6
Compare
|
Works fine locally. |
|
Moving this to blocked while we wait for 9.9 to launch on wpcom |
@scruffian It looks like 9.9 was updated on atomic sites, is this change likely to be merged soon? |
|
This was done in #3327 |
This PR addresses #2566.
Tested with and without color annotations on the Mayland theme, and appears to work fine.
My hesitation in adding this is that there is no support yet for setting the link's hover color in Gutenberg, so may result in some strange combinations.