ConsenSysMesh / ConsenSysMesh/rimble-ui

Add prop wordBreak

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
enhancement needs discussion
Dominant language
JavaScript
Stars
455
Forks
60
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
When a single word is too long it doesn't break automatically and causes issues with layouts.

![image](https://user-images.githubusercontent.com/797290/58883499-cd10e480-869b-11e9-9209-a258b22e9d2b.png)

**Describe the solution you'd like**
A new styled-component prop for text elements, **wordBreak**, that allows setting the css property, _word-break_.

**Describe alternatives you've considered**
Could use property as inline style. Could force all layouts to be wide enough to support widest element.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.