Seedlet & Spearhead Custom Link Color#3325
Conversation
11981a3 to
948d064
Compare
|
It's not working in the view for me either - I tested in a cover block... |
|
I found and fixed an issue with the cover block specifically where the specificity of some anchor styling was preventing the 'link' style from cascading properly. I suspect there are other blocks with the same situation, I'll comb through spearhead and see where else it might be occurring. @jeffikus I was unable to reproduce your screenshot however (tested both Spearhead and Seedlet). It only KINDA happened for me when I was testing and had SEEDLET in the editor, switched themes (but didn't reload the editor) and set the color to that green (secondary color) which isn't a color provided by Spearhead so it rolled back to the 'default'. But that seems like I was trying too hard... |
|
Shoot... |
edf6b21 to
63b60fe
Compare
|
I pushed a fix to Seedlet colors for this, just needs another review... |
This change adds the experimental-theme.json to seedlet so that it can properly style a link color in the Block Editor. This JSON structure is correct for Gutenberg < 9.9 and will need to be updated.
Refactored the experimental-theme.json to fit the structure for the change as of Gutenberg 9.9
In accordance with WordPress/gutenberg#28110 the theme.json file has been updated to reflect the new expected shape.
63b60fe to
4d3697a
Compare
|
Yeah sorry I forgot to update the editor styles too. Should be good to go now... |
|
This will be a lot easier to resolve once this is fixed: WordPress/gutenberg#29557 |
|
I removed a bunch of code from Seedlet to fix this. Some of this code was added in this PR: #3088 I think if you run the latest version of Gutenberg it will all work as expected, but there could be more cases I've not considered... |
MaggieCabrera
left a comment
There was a problem hiding this comment.
I could not get this to break, it looks good to me!







Changes proposed in this Pull Request:
Changes the shape (or adds) theme.json files from the following Pull Requests:
Seedlet:
#3271
#3274
Spearhead:
#3133
Related issue(s):
#3243
Diff
D57441-code