-
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
Post Excerpt: Unwanted default margin on paragraph #47457
Comments
As an additional improvement, it should be possible to have text alignment controls in the post excerpt as in other text blocks. postexcerpt.mp4 |
@jasmussen If we can get rid of these unwanted margins, it'd be very helpful for the text-focused patterns for #44140 Is there any chance for this and #47458 to be looked at? |
This is a really good one, yes. I'll see if I can't sneak in a PR soonish. In the mean time and as prep, I wonder: is there a use case for that default margin? I know we have some other margin rules around paragraphs inside groups, is there really any downside to removing this margin? CC: @ntsekouras |
I assume from the video that the second request is for text alignment on the post excerpt placeholder. For adding block alignments and wide/full, it was recommended not to add it. |
Created #47538 in an attempt to fix this. Give or take the margin discussion around "Read more", I think this is a good step forward. |
Description
The paragraph inside the post excerpt block has the browser default margins, and that is causing a misalignment.
For example, you would expect the excerpt to align with the post title and the meta, but it won't. The issue is apparent on both in the editor and on the front of the site. The example below was with the Twenty Twenty-three theme, but this is not a theme-specific issue.
It'd be great if it were removed in the plugin so that themes don't need to remove it with CSS.
BTW, the Term Description block shares the problem.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WP v6.1.1
Gutenberg trunk. The issue is also happening without the plugin.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: