Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scss/utilities/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@

.text-decoration-none { text-decoration: none !important; }

.text-break { word-break: break-word !important; }
.text-break {
word-break: break-word !important; // IE & < Edge 18
overflow-wrap: break-word !important;
Comment thread
MartijnCuppens marked this conversation as resolved.
}

// Reset

Expand Down
2 changes: 1 addition & 1 deletion site/docs/4.2/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 `word-break: break-word`.
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).

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