-
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
Verse block: Add support for the padding to the verse block #29820
Conversation
Size Change: +1.27 kB (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Seems cool. What does the removal of the 1em default padding mean for existing themes? |
If existing themes add the padding to the frontend to match the editor and don't also add it to the editor styles then the frontend won't match the editor anymore - the frontend will stay the same though. |
I'm thinking mostly in terms of existing themes that don't style the verse, but perhaps relied on the existing verse style. Very edgecase stuff, and probably acceptable. |
Yeah this could be a problem, but it would only impact the editor. |
Is not adding the visualizer on purpose? 375 (directory) themes uses wp-block-verse but that doesn't tell us much |
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.
Oh of course! I missed that it was the editor stylesheet.
@carolinan good point, I added the visualizer. |
… within the block boundary
If at all possible, I would avoid a wrapper. In the past adding wrappers have bitten us. |
I have the same issue about the need for a wrapper in #29335 for the visualizer in the group block, I'm leaning towards removing the visualizer for now until we find a non intrusive way to do it. (potentially using a Popover but may be a bit complex) |
The visualizer is nice to have but the padding is still visible (more visible if it is large, of course). |
Ok, removed the visualizer! |
Description
This adds support for custom padding to the Verse block. This also removed padding from the block in the editor, so that the editor and the frontend match.
How has this been tested?
Screenshots
Editor:
Frontend:
Types of changes
New feature
Checklist: