Skip to content

Class text balanced #41389

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
julien-deramond opened this issue Apr 16, 2025 · 1 comment · May be fixed by #41447, #41490 or #41491
Open

Class text balanced #41389

julien-deramond opened this issue Apr 16, 2025 · 1 comment · May be fixed by #41447, #41490 or #41491

Comments

@julien-deramond
Copy link
Member

julien-deramond commented Apr 16, 2025

Discussed in https://github.com/orgs/twbs/discussions/41368

Originally posted by abielmagudev April 12, 2025
Hi friends, can you add a class for balanced text?

.text-balanced {
  text-wrap: balance;
}
<p class="text-balanced">This is a text balanced by a class of CSS.</p>
@julien-deramond julien-deramond moved this to Todo in v5.4.0 Apr 16, 2025
@julien-deramond julien-deramond moved this from Todo to To analyze in v5.4.0 Apr 16, 2025
viniciusvts added a commit to viniciusvts/bootstrap that referenced this issue May 6, 2025
@viniciusvts viniciusvts linked a pull request May 6, 2025 that will close this issue
10 tasks
@coliff
Copy link
Contributor

coliff commented May 7, 2025

I think the class name should be text-balance rather than text-balanced

Then it exactly matches the text-wrap property value.

FWIW; Tailwind use text-balance too: https://tailwindcss.com/docs/text-wrap#quick-reference

(I was considering suggesting text-wrap-balance, but it's a bit long and unnecessarily verbose probably)

cc @viniciusvts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment