0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
`.text-break` fix
This commit is contained in:
Martijn Cuppens 2020-01-23 17:18:07 +01:00 committed by XhmikosR
parent 92525e9ec4
commit 1884b8a421
2 changed files with 2 additions and 3 deletions

View File

@ -63,8 +63,7 @@
.text-decoration-none { text-decoration: none !important; }
.text-break {
word-break: break-word !important; // IE & < Edge 18
overflow-wrap: break-word !important;
word-wrap: break-word !important;
}
// Reset

View 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 `overflow-wrap: break-word` (and `word-break: 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`.
{% capture example %}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>