#55783 closed defect (bug) (fixed)
Twenty Seventeen: Button text word break does not apply correctly
Reported by: | robertghetau | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | 5.9.3 |
Component: | Bundled Theme | Keywords: | has-patch commit |
Focuses: | css | Cc: |
Description
This is a replica of this report: https://github.com/Automattic/wp-calypso/issues/63821
To replicate, add a button block with a lot of text on a page and check it in the front-end.
Attachments (1)
Change History (14)
This ticket was mentioned in PR #2740 on WordPress/wordpress-develop by bhrugesh96.
2 years ago
#1
- Keywords has-patch added
#2
@
2 years ago
- Component changed from Themes to Bundled Theme
- Focuses css added
- Milestone changed from Awaiting Review to 6.1
Thanks for the patch @bhrugesh12!
Using pre-wrap
makes long text wrap to a second line, but I think pre-line
might be better. That way, any extra spaces at the beginning or end are ignored.
sabernhardt commented on PR #2740:
2 years ago
#4
These button styles are also in editor-blocks.css:
We could consider changing nowrap
for the File block download buttons, too:
#5
@
2 years ago
- Keywords changes-requested added
@bhrugesh12 Could you add the change to editor-blocks.css in the pull request (and use pre-line
for the File block links in both places, too)?
This ticket was mentioned in PR #3147 on WordPress/wordpress-develop by mukeshpanchal27.
2 years ago
#6
Trac ticket: https://core.trac.wordpress.org/ticket/55783
#7
@
2 years ago
- Keywords changes-requested removed
@sabernhardt I have addressed the PR feedback. Can you please review it?
#8
@
2 years ago
Thanks for the updated PR!
Before applying PR 3147, the Button and File block links can extend beyond the container in one line. With the patch, the text wraps.
The editor already has pre-wrap
as an inline style, so the appearance does not change with the patch. (If the editor ever moves or removes that style, though, the theme would be consistent with the front end's pre-line
style.)
#10
@
2 years ago
- Owner set to audrasjb
- Status changed from new to reviewing
Self assigning for final review.
2 years ago
#12
committed in https://core.trac.wordpress.org/changeset/54139
2 years ago
#13
committed in https://core.trac.wordpress.org/changeset/54139
Fixed Gutenberg button wrap issue.
Ticket Ref:- https://core.trac.wordpress.org/ticket/55783