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
Add text-wrap: pretty;
as a global toggle option
#55190
Comments
Related in part: #48202 |
In the editor you might want to have "stable" value for things that are editable, if I understood correctly:
— via |
Indeed, balance seems too balanced in cases, and pretty seems even better. |
text-wrap: balance;
as a global toggle optiontext-wrap: pretty;
as a global toggle option
Somehow related: While |
I've found a combination of both to work nicely:
|
The CSS feature
text-wrap: pretty;
enables line-breaks to happen in a way that balances the line-lengths. In many cases this avoids text widows. You can read a bit more here, although that refers tobalance
wherepretty
seems better as a global toggle.. The example from that post, shown here, features a widow:The CSS property would enable that heading to wrap instead like this:
The feature is useful for headings and captions especially, and it would be nice if we had, in theme.json, a global toggle to enable it across all those.
It could be in
settings.typography.textBalance
as a true or false, and would output this:This would work as a progressive enhancement.
The text was updated successfully, but these errors were encountered: