Closed Jasonl157 closed 2 weeks ago
Hi @Jasonl157
the Text
uses overflow-wrap: break-word
and since your text is is just a single long word, it doesn't wrap.
If you want to wrap text anywhere, then setting the CSS property to anywhere
as you did is the correct approach.
Since this behavior is by design, as words are typically not that long, I'm closing this issue.
Describe the bug
With the default wrapping, when the
Text
is a long string and inside a flex container, it's not wrappedIsolated Example
https://stackblitz.com/edit/github-1yycgh-wodi7h?file=src%2FApp.tsx
Reproduction steps
Text
overflows. In contrast to that, the secondText
withoverflow-wrap: anywhere
is wrappedExpected Behaviour
Long string inside flex container is wrapped
Screenshots or Videos
UI5 Web Components for React Version
1.29.0
UI5 Web Components Version
1.24.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration