brainly / brainly/style-guide

Label component to Have an option not to trim text

Open
#2,679 0 comments 1 reaction 1 assignee Claimed by @coderitual View on GitHub
Type: Enhancement
Dominant language
TypeScript
Stars
165
Forks
31
PR merge metrics
No merged PRs in 30d

Description

### Problem
Currently, the Label component trims text after 1 line if text overflows due to those styles

```css
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
```

### Solution
I would like to have the option to disable cutting text and instead to make the text wrapping

### Context
There is a business justification. For example, when cropping text will change the meaning like here
CleanShot 2023-02-24 at 11 29 29@2x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.