]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix text break in Firefox (#28063)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Wed, 6 Feb 2019 10:38:13 +0000 (11:38 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 6 Feb 2019 10:38:13 +0000 (12:38 +0200)
scss/utilities/_text.scss
site/docs/4.2/utilities/text.md

index 7b137211f988f03395a34b827d9e0320cd76fb0e..589e5687a86b300516eaa8905734821e881249a6 100644 (file)
 
 .text-decoration-none { text-decoration: none !important; }
 
-.text-break { word-break: break-word !important; }
+.text-break {
+  word-break: break-word !important; // IE & < Edge 18
+  overflow-wrap: break-word !important;
+}
 
 // Reset
 
index 04f564c335c5f3a3d847307d061f7acc76d9320b..d25564a186dc965bd9df3fa6e77576b82af39222 100644 (file)
@@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
 
 ## Word break
 
-Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-break: break-word`.
+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).
 
 {% capture example %}
 <p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>