Skip to content

Commit

Permalink
Backport #29325. (#30074)
Browse files Browse the repository at this point in the history
`.text-break` fix
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Jan 23, 2020
1 parent 52bf37d commit 3b90ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scss/utilities/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
.text-decoration-none { text-decoration: none !important; }

.text-break {
word-break: break-word !important; // IE & < Edge 18
overflow-wrap: break-word !important;
word-wrap: break-word !important;
}

// Reset
Expand Down
2 changes: 1 addition & 1 deletion site/docs/4.4/utilities/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi

## Word break

Prevent long strings of text from breaking your components' layout by using `.text-break` to set `overflow-wrap: break-word` (and `word-break: break-word` for IE & Edge compatibility).
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word`.

{% capture example %}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
Expand Down

0 comments on commit 3b90ee0

Please sign in to comment.