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
4 changes: 2 additions & 2 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ $utilities: map-merge(
class: font,
values: italic normal
),
"overflow-wrap": (
property: overflow-wrap word-break, // word-break for IE & < Edge 18
"word-wrap": (
property: word-wrap,
class: text,
values: (break: break-word)
),
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_reset-text.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@mixin reset-text {
font-family: $font-family-base;
// We deliberately do NOT reset font-size or word-wrap.
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
font-style: normal;
font-weight: $font-weight-normal;
line-height: $line-height-base;
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/4.3/utilities/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Prevent text from wrapping with a `.text-nowrap` class.

## 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`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support.

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