Opened 19 months ago
Closed 4 months ago
#58024 closed defect (bug) (fixed)
Twenty Twenty: button block link does not inherit custom letter spacing
Reported by: | nidhidhandhukiya | Owned by: | karmatosed |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | 6.1 |
Component: | Bundled Theme | Keywords: | has-testing-info has-screenshots has-patch commit |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue:-
- Activate Twenty Twenty theme.
- choose button block.
- Give letter spacing.
You can able to see there is no spacing between the letters.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/B2GwwvWvlTvwZFMWD55P
Attachments (3)
Change History (16)
#1
@
19 months ago
- Focuses css added
- Summary changed from Twenty Twenty theme button block having issue with letter spacing. to Twenty Twenty: button block link does not inherit custom letter spacing
I think this would be better to fix in the editor for any theme. If the inline style stays on the parent element, the link could inherit the letter-spacing
and any other properties.
Button block links already inherit custom text-decoration
from the wp-block-button
element, but that is the only CSS property I found in the block library style.css
.
.wp-block-button[style*="text-decoration"] .wp-block-button__link { text-decoration: inherit; }
#3
in reply to:
↑ description
@
18 months ago
I don't think this issue us limited to the Twenty Twenty theme — it is also happening for me when creating a blank theme with the Create Block Theme plugin.
Replying to nidhidhandhukiya:
Steps to reproduce the issue:-
- Activate Twenty Twenty theme.
- choose button block.
- Give letter spacing.
You can able to see there is no spacing between the letters.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/B2GwwvWvlTvwZFMWD55P
This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.
18 months ago
@
16 months ago
I have applied the patch, so according to this solution It will resolve the issue and also not affect the default designs.
#6
@
16 months ago
Hi,
Patch report for - https://core.trac.wordpress.org/attachment/ticket/58024/58024.patch
Environment:
WordPress- v6.2.2
Theme-
Os- Mac
Browser- Chrome
Expected Result - The letter spacing should get applied to the button block ☑️
Screenshot:
Before - https://prnt.sc/aYjVOoipBzmU
After - https://prnt.sc/PLXSKQAXK4Gp
Thanks!
#7
@
15 months ago
I pulled 58204.2.patch from @harshgajipara's 58609.diff on #58609.
On that ticket, I also tried moving some CSS properties to the Buttons block instead of on the links (similar to 58024.1.patch).
#10
@
6 months ago
Test Report
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/58024/58204.2.patch
Environment:
WordPress - 6.5
OS - Windows
Browser - Chrome
Theme: Twenty Twenty
PHP - 8.1.23
Active Plugin - Test Reports
Actual Results:
- Button Block's Letter Spacing Issue is Resolved with patch.✅
Screenshots:
Backend:
========
Before Patch: https://prnt.sc/OSQY8cgoSRcF
After Patch: https://prnt.sc/HU8nyEQq38iX
Frontend:
========
Before Patch: https://prnt.sc/oaqvHN7SpBws
After Patch: https://prnt.sc/pL0H7WdGADND
After applying this solution the issue is resolved.