Edit Site: Reset word-break for TemplateListItem#76105
Edit Site: Reset word-break for TemplateListItem#76105ntsekouras wants to merge 2 commits intotrunkfrom
word-break for TemplateListItem#76105Conversation
|
Size Change: +144 B (0%) Total Size: 6.87 MB
ℹ️ View Unchanged
|
| flex-direction: column; | ||
| border: $border-width solid $gray-300; | ||
| justify-content: center; | ||
| word-break: normal; |
There was a problem hiding this comment.
There was a problem hiding this comment.
I updated the grid columns number to be 1 on mobile. I think it should be enough. What do you think?
There was a problem hiding this comment.
Actually I'm going to close this since it will be handled with the change to overflow-wrap.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
ae7a7ee to
839f258
Compare

What?
Follow up of: #76071
I manually checked lots of components but Claude helped me with a more thorough audit.
After #76071 added
word-break: break-wordto the base.components-buttonclass, #76084 fixed the first regression inDateTimePicker. This PR addresses another at-risk component found during a broader audit.What was audited
The
word-break: break-wordrule can cause issues on buttons that meet all three conditions:primary,secondary, andtertiaryare protected bywhite-space: nowrapThe audit covered all packages:
components,editor,edit-post,edit-site,block-editor,block-library,dataviews,commands,boot,global-styles-ui,interface,edit-widgets,customize-widgets, andadmin-ui.What was found
Most constrained buttons are safe because they're either icon-only, use a variant with
nowrap, or havewidth: 100%with ample space.TemplateListItem(edit-site, add-new-template) was the one component that needed a fix — default variant buttons with template name text inside a 2–3 column grid.word-break: break-wordcould cause mid-word breaks.I updated the grid columns number to be
1on mobile.The screenshots below are with a really small screen size, but it could possibly occur in different languages in bigger screens.