Automattic / Automattic/jetpack
Button Block: better account for alignment on multi-line text
Open
[Block] Button
[Pri] Low
Bug
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
`white-space: pre-wrap` causes the button text to account for white space when centering text causing it to look slightly offset when it spans several lines:

Original report: p8oabR-DS-p2#comment-5131
Contributor guide
Research direction
Start by locating the Button Block styles and reproducing the reported case with multi-line text and `white-space: pre-wrap`. Compare the current centered rendering with the screenshot and verify that the text no longer appears offset when the issue is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100