-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Lower the specificity of font size CSS Custom Properties in the editor #37526
Conversation
Size Change: -5 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
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.
This lowers the specificity and should work, I assume there's a separate set of rules for the frontend?
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.
Thanks @oandregal ! I tested and works as expected.
Failing tests seem to be unrelated and in fact some of them are the same in this PR. Could these be intermittent failures in trunk? 🤔
Yeah, and it works fine in the frontend. This actually mimics what happens in the frontend's styles: they have 010 specificity, which is the same as coming from the global stylesheet but because GS loads later it wins. |
4c1c0ca
to
8b6f501
Compare
Fixes #37381 (comment)
How to test
theme.json
. For example, TwentyTwentyTwo.normal
font size to the list of font sizes:styles
section of thetheme.json
:The expected result is that the default font size for the paragraph is
23px
and not16px
.