Opened 2 years ago
Last modified 2 years ago
#56195 new defect (bug)
Padding issue in Post Title Block
Reported by: | varshil151189 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.0 |
Component: | Editor | Keywords: | has-patch close |
Focuses: | ui, css | Cc: |
Description
Hello Team,
In Twenty Twenty Two Theme, when we add Post Title block in editor side and after that applied background color for that, we can see there is some padding but in Frontend side the padding is not reflected.
For more information, please find video below:
Video URL: https://share.cleanshot.com/28JCrp2bbSPC7aT2i2d5
Thank you.
Attachments (1)
Change History (5)
#3
@
2 years ago
What I am thinking is that, if we fix this in the theme, we will eventually have duplicate styles once the underlying problem is fixed in Gutenberg. It would also only solve it for this single theme, not all the other themes that are affected.
#4
@
2 years ago
- Component changed from Bundled Theme to Editor
- Keywords close added; needs-testing removed
- Summary changed from Twenty Twenty Two: Padding issue in Post Title Block to Padding issue in Post Title Block
Yes, this editor issue belongs on the Gutenberg repository (if not already there) for any theme.
If you add any heading blocks to the same post, the post title will get the padding on the front end because it is in the wp-block-heading-inline-css
styles. Could the post title block use the heading block styles as a sort of dependency?
Hi!
I am able to reproduce this in other themes, I believe it is a problem with the default block styles, not the theme. Let's do some more testing?
I tested with Emptytheme, which does not have any block styles of its own.
I tested with the post title, level H2 (default heading level), using a color from the default WordPress color palette (as opposed to a custom color).
In the editor I see the following CSS:
But on the front, the .has-background padding styles are not loading.
I tested with WordPress 6.0, with and without Gutenberg, on Chrome, Mac OS.