-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
Description
Gutenberg is currently outputting the following style rule for themes with a theme.json
file:
a:not(.wp-element-button) {
text-decoration: underline;
}
Prior to #42072 (which landed in Gutenberg 13.7.0), this rule only used a simple a
selector. But now that it has higher specificity, I've found it overriding various styles in the theme I'm using (namely, a child theme of Divi... the issue would also happen with base Divi if it had a theme.json).
What is the purpose of this style to begin with? Links already use underlines by default in every browser that I know of. The rule seems redundant.
Step-by-step reproduction instructions
- Use a theme with a
theme.json
. - Place a link somewhere in a post and save.
- Open the post.
- Use your browser's Inspect Element tool to view all the styles being applied to the link.
- Notice the
a:not(.wp-element-button)
styles.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 6.0.1
- Gutenberg 13.7.1
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
huubl
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release