aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scss/utilities/_text.scss2
-rw-r--r--site/docs/4.2/utilities/text.md9
2 files changed, 10 insertions, 1 deletions
diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss
index 7762aa47d..a04fd097d 100644
--- a/scss/utilities/_text.scss
+++ b/scss/utilities/_text.scss
@@ -62,7 +62,7 @@
.text-decoration-none { text-decoration: none !important; }
-.text-break { word-break: break-word !important; }
+.text-break { word-break: break-word !important; }
// Reset
diff --git a/site/docs/4.2/utilities/text.md b/site/docs/4.2/utilities/text.md
index 0b493d562..04f564c33 100644
--- a/site/docs/4.2/utilities/text.md
+++ b/site/docs/4.2/utilities/text.md
@@ -66,6 +66,15 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
{% endcapture %}
{% include example.html content=example %}
+## Word break
+
+Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-break: break-word`.
+
+{% capture example %}
+<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
+{% endcapture %}
+{% include example.html content=example %}
+
## Text transform
Transform text in components with text capitalization classes.