-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 - Heading block takes extra padding while adding a background #40144
Comments
In #24523, gutenberg/packages/base-styles/_variables.scss Lines 102 to 104 in d311688
gutenberg/packages/block-library/src/heading/style.scss Lines 1 to 10 in d311688
|
Hello @kmadhak The same issue coming in the Twenty Twenty-Two theme too. I have started working on this issue. I will update here when it is complete. Thanks |
I have fixed this issue and have also created PR for it. Please review this PR link: #40180 Than you ! |
WordPress core provides default padding to Heading blocks with a background color, but most themes override this with their own custom styles. That said, as you indicated the defaults add way too much padding in nearly all cases. Thanks for the PR @aezazs-multidots. |
Hello @ndiego, Greetings of the day!!! I would like to know the progress of this issue, please let me know if you need more detail on it. Thank you. |
Description
When I try to add a background colour in h1 tag of heading block then the extra padding got added, so the text is visible in multiline, for more detail please find the attachment of the video and let me know if there is anything.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Recording.30.mp4
Environment info
WordPress Version:- 5.9.3
Browser: Google Chrome 100.0.4896.75 (Official Build) (arm64)
OS Version: Mac 12.3.1
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: