-
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
Inspector: Improve handling of long words in post titles #62691
Conversation
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. |
Size Change: +19 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
Flaky tests detected in 0384b0e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9594804610
|
@jameskoster thanks for looking into this. How about avoiding hyphenating also in the card title? |
@afercia Is there any reason to avoid it? In this case it seems grammatically appropriate and should aid readability. |
For a few reasons: 1 2 Chrome Firefox Safari Given the inconsistent behavior, I'm not sure we can assume hyphenation in browsers is reliable. 3 |
I don't necessarily agree that the third point is a problem, but the others are good arguments. I'll push an update. |
This needs to be merged ASAP if you want to include it in RC1 |
The failing tests seem unrelated to this PR. I've rebased which will hopefully fix, otherwise would it be an option to force merge? I'll leave that decision to you @ellatrix. |
A rebase should fix it yes, please let's avoid force merging |
Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: afercia <afercia@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: 528122e |
Fixes #62627.
What?
Improves handling of long words in the UI. Specifically:
Before
before.mp4
After
How?
hyphens: auto
is used to hyphenate long words.word-break: break-word
is used to break long words without hyphenating. This is to avoid confusion about the slug structure.Testing Instructions