-
Notifications
You must be signed in to change notification settings - Fork 176
Twenty Twenty One Blocks: Migrate Preformatted Block styles #98
Twenty Twenty One Blocks: Migrate Preformatted Block styles #98
Conversation
| pre.wp-block-preformatted { | ||
| 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.
scruffian
left a comment
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