brainly / brainly/style-guide

Flexible width option for text container

Open
#1,767 1 comment 0 reactions 1 assignee Claimed by @clxandstuff View on GitHub
Type: Feature Request
Dominant language
TypeScript
Stars
165
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Flex and Text components has no flexibility options for complying of it's parent element's width.

Issue
![image](https://i.ibb.co/D7fs2kL/sample1.gif)

Expected
![image](https://i.ibb.co/980XkmC/sample2.gif)

Can style-guide have more flexible containers that inherit of its parents width?
Something like in this example https://codepen.io/seahindeniz/pen/jOPjBJv

```jsx


This box generates the width




This box should not generate width for its content size and needs to
comply the width of its parents or previous elements width. Lorem ipsum
dolor sit amet, consectetur adipiscing elit. Fusce quis elit dui. Donec
tincidunt velit at justo congue suscipit.


```

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.