Skip to content

Add text-wrap balance and pretty to complement existing white-space utils #41491

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdo
Copy link
Member

@mdo mdo commented May 23, 2025

Fixes #41389 for v5. Complemented by #41490 for v6, which replaces the white-space utilities with all text-wrap.

…tils. In v6 we'll replace with all text-wrap utilities.
@mdo mdo added this to v5.4.0 May 23, 2025
@mdo mdo requested a review from a team as a code owner May 23, 2025 22:32
@github-project-automation github-project-automation bot moved this to Needs review in v5.4.0 May 23, 2025
This text should be balanced. Here we’re writing a longer snippet of text to form a paragraph and demonstrate how the text wraps.
</div>`} />

Use `.text-pretty` to prevent single words their own line (orphans). **Pretty text wrapping is not fully supported in Safari and Firefox at the moment.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a link to the Can I Use entry for this?
https://caniuse.com/mdn-css_properties_text-wrap_pretty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

Class text balanced
2 participants