You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UI5's Text control allow to set wrapping="false" which then implements the typical ellipsis.
Previous versions of Text (prior to 2.0) which probably relied on UI5WC-React also supported this by wrappingType="None".
The current implementation only allows to set maxLines=1. Doing this will also show an ellipsis, but it is implemented via word break.
This can lead to very suprising text display.
Since the second word is too long for the provided width, the text breaks at the word level.
This behavior is correct for text spanning multiple lines.
However, for single line text it is a bug. Imagine any scenario with limited space (mobile devices come to mind) and an unfortunate combination of long words (over which we usually don't have any control).
Affected Component
Text
Expected Behaviour
For single line text the classical ellipsis behavior should apply. Take Label as example of this behavior.
Bug Description
UI5's
Text
control allow to setwrapping="false"
which then implements the typical ellipsis.Previous versions of
Text
(prior to 2.0) which probably relied on UI5WC-React also supported this bywrappingType="None"
.The current implementation only allows to set
maxLines=1
. Doing this will also show an ellipsis, but it is implemented via word break.This can lead to very suprising text display.
Example:
Edit the code sample on https://sap.github.io/ui5-webcomponents/components/Text/
Result:
Simple...
Since the second word is too long for the provided width, the text breaks at the word level.
This behavior is correct for text spanning multiple lines.
However, for single line text it is a bug. Imagine any scenario with limited space (mobile devices come to mind) and an unfortunate combination of long words (over which we usually don't have any control).
Affected Component
Text
Expected Behaviour
For single line text the classical ellipsis behavior should apply. Take
Label
as example of this behavior.Behaves like UI5 does. Example: https://ui5.sap.com/#/entity/sap.m.Text/sample/sap.m.sample.Text/code
View.xml:
Isolated Example
No response
Steps to Reproduce
...
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.x
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: