diff options
| author | Mark Otto <[email protected]> | 2020-05-30 20:49:23 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-31 06:49:23 +0300 |
| commit | c682e751bfc0bd259997ad2de3f78eb3001efdd7 (patch) | |
| tree | de08427caebd22d94cb61a750d198c988a2e0f64 | |
| parent | 1f1b147f19cf64dea578285e49c397cd30734ba4 (diff) | |
| download | bootstrap-c682e751bfc0bd259997ad2de3f78eb3001efdd7.tar.xz bootstrap-c682e751bfc0bd259997ad2de3f78eb3001efdd7.zip | |
Restore word-break: break-word on .text-break to fix text breaking on flex containers (#30932)
| -rw-r--r-- | scss/_utilities.scss | 2 | ||||
| -rw-r--r-- | site/content/docs/5.0/utilities/text.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 73ba08c97..79e52fd32 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -440,7 +440,7 @@ $utilities: map-merge( values: italic normal ), "word-wrap": ( - property: word-wrap, + property: word-wrap word-break, class: text, values: (break: break-word) ), diff --git a/site/content/docs/5.0/utilities/text.md b/site/content/docs/5.0/utilities/text.md index d7a8e97b0..aad34a35d 100644 --- a/site/content/docs/5.0/utilities/text.md +++ b/site/content/docs/5.0/utilities/text.md @@ -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 `word-wrap: break-word`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support. +Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-wrap: break-word` and `word-break: break-word`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support, and add the deprecated `word-break: break-word` to avoid issues with flex containers. {{< example >}} <p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p> |
