Skip to content

Commit 4c581ed

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Backport #29325. (#30074)
`.text-break` fix
1 parent 050d5b6 commit 4c581ed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scss/utilities/_text.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
.text-decoration-none { text-decoration: none !important; }
6464

6565
.text-break {
66-
word-break: break-word !important; // IE & < Edge 18
67-
overflow-wrap: break-word !important;
66+
word-wrap: break-word !important;
6867
}
6968

7069
// Reset

site/docs/4.4/utilities/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
6868

6969
## Word break
7070

71-
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).
71+
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word`.
7272

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

0 commit comments

Comments
 (0)