-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixes a regression in setting the font-size of the code block #27862
Conversation
Size Change: -33 B (0%) Total Size: 1.28 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.
Your changes looks good and makes sense.
However, it does not fix the issue with the TwentyTwentyOne theme because it hard codes the default font size for code block to the xs size by specifying:
.wp-block-code code {
font-size: var(--global--font-size-xs);
}
@mkaz I've commented about the issue with the TwentyTwentyOne theme over there #27827 (comment) |
Thanks for fixing |
Fixes #27827
#27294 introduced the font size support for the code block. It also added these styles to the block's CSS:
This was problematic so in #27672 the CSS Custom Property was removed. However, that PR didn't remove the whole declaration, only removed the CSS Custom Property, hence introduced a regression. This is the current CSS of the block:
#27672 should have removed the font-size declaration from the code block's CSS instead.