[V4] Typography: add overflow-wrap (break long words only when they don't fit) #38345
heinvv
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
Long words (product names, compound words in languages like German or Dutch, URLs, email addresses) can be wider than a narrow column or a phone screen. Without
overflow-wrap, such a word overflows its box and causes horizontal scrolling or overlaps the next element.V4's style settings have no control for this, so the only fix is Custom CSS (Elementor Pro) on each element. Without Pro, the only workaround is to insert invisible break points into the text by hand, which lets the word break anywhere, even where it would fit.
Describe the solution you'd like
Add
overflow-wrapas a V4 typography (or text) style control with the valuesnormal,break-wordandanywhere, responsive per breakpoint like other V4 style settings. Withbreak-word, a long word moves to the next line whole and breaks inside only when it is wider than its box.Related properties that could sit beside it:
word-break(normal,break-all,keep-all) andhyphens(none,manual,auto, with the page's language).Describe alternatives you've considered
Additional context
All reactions