Commit 288b9b82 authored by XhmikosR's avatar XhmikosR
Browse files

Backport #30932

Restore word-break: break-word on .text-break to fix text breaking on flex containers
6 merge requests!36532My v4 dev,!34086v4: Fix prevented show event disables modals with fade class from being displayed again,!33729V4 dev,!33086V4 dev,!31901Add opacity utilities,!31513Update icons.md
Showing with 3 additions and 2 deletions
+3 -2
......@@ -63,7 +63,8 @@
.text-decoration-none { text-decoration: none !important; }
.text-break {
word-wrap: break-word !important;
word-break: break-word !important; // IE & < Edge 18
overflow-wrap: break-word !important;
}
// Reset
......
......@@ -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-wrap: break-word`.
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.
{% capture example %}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment