]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Restore word-break: break-word on .text-break to fix text breaking on flex containers...
authorMark Otto <markd.otto@gmail.com>
Sun, 31 May 2020 03:49:23 +0000 (20:49 -0700)
committerGitHub <noreply@github.com>
Sun, 31 May 2020 03:49:23 +0000 (06:49 +0300)
scss/_utilities.scss
site/content/docs/5.0/utilities/text.md

index 73ba08c97509bf55bc77df47559e02d43a7c68b0..79e52fd3282e526a649d86adfa506232d5bbc483 100644 (file)
@@ -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)
     ),
index d7a8e97b09b29bd8e5d455e5076a03346e377a52..aad34a35dea1cd8fac2f6faef6fd3ca9495543d1 100644 (file)
@@ -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>