carbon icon indicating copy to clipboard operation
carbon copied to clipboard

`textOverflow` prop on `Typography` can't be used

Open clheppell opened this issue 2 years ago • 1 comments

Current behaviour

In plain CSS to to use the text-overflow property, you need to set overflow: hidden and white-space: nowrap which in Carbon can be done by setting the truncate prop, but setting this prop explicity sets text-overflow to ellipsis, so the value of textOverflow never has any effect.

Expected behaviour

To be able to specify textOverflow alongside the truncate prop.

CodeSandbox or Storybook URL

https://codesandbox.io/s/crimson-flower-f0o3go?file=/src/App.js

JIRA Ticket (Sage Only)

No response

Suggested Solution

No response

Carbon Version

116.2.0

Design Tokens Version

No response

What browsers are you seeing the problem on?

Firefox, Chrome

What Operating System are you seeing the problem on?

Windows

Anything else we should know?

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

clheppell avatar Jun 07 '23 08:06 clheppell

FE-6013

DipperTheDan avatar Jun 13 '23 13:06 DipperTheDan

:tada: This issue has been resolved in version 134.0.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

carbonci avatar May 09 '24 15:05 carbonci