infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsText: Text Clamping Failure with Spaceless Characters #2633

Open shalini-patro12 opened 1 month ago

shalini-patro12 commented 1 month ago

Reproduction Steps:-

1 . open enterprise-wc project .

  1. inside components folder open ids-text and inside ids-text open line-clamp.html.
  2. inside line clamp.html replace the existing content with below content ` Line Clamp (2)
    <ids-text font-size="20" line-clamp="2" id="example-story">
      ghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
    </ids-text>

    `

  3. serve the project locally and check the ui of line-clamp.html , you will see the line is not getting clamped. Below I am attaching the snippet of the issue created in web component image
tmcconechy commented 1 month ago

Im doubting if this is fixable since it works on splitting words? How reasonable of a test case is this? We can check but thinking about how to prioritize.