aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2020-01-04 18:13:48 +0100
committerMartijn Cuppens <[email protected]>2020-01-04 18:26:24 +0100
commitc7ce627ca8da26cbc9cb6edc3355072562ce7c30 (patch)
tree2370b4287cbfefcff2be433f8856b96cdce53ba4
parentd5270cb811f1cd39b02e7a18b955a693de1f22cd (diff)
downloadbootstrap-c7ce627ca8da26cbc9cb6edc3355072562ce7c30.tar.xz
bootstrap-c7ce627ca8da26cbc9cb6edc3355072562ce7c30.zip
Remove redundant `overflow-wrap` property
While `overflow-wrap` is the more recommanded option, `word-wrap` alone has a wider support.
-rw-r--r--scss/_utilities.scss4
-rw-r--r--site/content/docs/4.3/utilities/text.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/scss/_utilities.scss b/scss/_utilities.scss
index 32312daf9..60ac6dac2 100644
--- a/scss/_utilities.scss
+++ b/scss/_utilities.scss
@@ -433,8 +433,8 @@ $utilities: map-merge(
class: font,
values: italic normal
),
- "overflow-wrap": (
- property: overflow-wrap word-wrap, // word-wrap for IE & < Edge 18
+ "word-wrap": (
+ property: word-wrap,
class: text,
values: (break: break-word)
),
diff --git a/site/content/docs/4.3/utilities/text.md b/site/content/docs/4.3/utilities/text.md
index 00057da25..d7a8e97b0 100644
--- a/site/content/docs/4.3/utilities/text.md
+++ b/site/content/docs/4.3/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 `overflow-wrap: break-word` (and `word-wrap: 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>