I might be (again!) missing something with specificity, but I think these rules shoudn’t overide stylesheet CSS.
(And even if I change :where into :is, the transition rule is still overriden.)
And as the rules are already in base.css, I think they shouldn’t be added again here.
Thanks for this, although I do believe this has been present for quite some time in Cwicly.
You certainly have a point about these styles being too specific where they’re placed, but they are necessary as Gutenberg doesn’t enqueue the base.css file before adding its own styling to the links…
So we have to null those again.
Maybe following the .editor-styles-wrapper a:where(:not(.wp-element-button)) instead of the .editor-styles-wrapper a rule would be the way to go here for us.
I see what you mean, but it seems the rules you want to nullify are:
.editor-styles-wrapper a:where(:not(.wp-element-button)) {
text-decoration: underline;
}
html :where(.editor-styles-wrapper) a {
transition: none;
}
And I guess people style their text links anyway, either with Cwicly’s UI (global styles, global/external classes, etc.) or custom CSS (like me), so this will be naturally overiden.
For instance, I do style my text links with rules like 'p a { ... }' my buttons with .cc-btn and my card links with 'a.post-thumb', so I don’t care about WP default.
And I would not be shocked that my links are underlined by default if I haven’t styled them