-
Notifications
You must be signed in to change notification settings - Fork 182
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
Twenty Twenty One Blocks: Migrate Preformatted Block styles #98
Twenty Twenty One Blocks: Migrate Preformatted Block styles #98
Conversation
overflow-x: auto; | ||
white-space: pre !important; | ||
font-size: var(--wp--preset--font-size--extra-small); |
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.
I think this could live in theme.json, once the block supports it. You can see how I did that for the code block: WordPress/gutenberg#27294
pre.wp-block-preformatted { | ||
overflow-x: auto; | ||
white-space: pre; |
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.
I think these rules should be added to the Gutenburg block itself.
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.
I don't think we need to add CSS for this block; we can move these rules to Gutenberg.
Based on the above I think we will end up with something similar to what you did for the code block... |
I have been trying to find the reason why the editor adds the |
… fix/migrate-preformatted-styles
Added a Gutenberg PR to take care of this one: WordPress/gutenberg#27584 |
I think we can close this. |
Add preformatted block styles, migrating applicable styles to theme.json
Broken out of #82
Fixes #96