0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Remove redundant overflow-wrap property

While `overflow-wrap` is the more recommanded option, `word-wrap` alone has a wider support.
This commit is contained in:
Martijn Cuppens 2020-01-04 18:13:48 +01:00
parent d5270cb811
commit c7ce627ca8
2 changed files with 3 additions and 3 deletions

View File

@ -433,8 +433,8 @@ $utilities: map-merge(
class: font, class: font,
values: italic normal values: italic normal
), ),
"overflow-wrap": ( "word-wrap": (
property: overflow-wrap word-wrap, // word-wrap for IE & < Edge 18 property: word-wrap,
class: text, class: text,
values: (break: break-word) values: (break: break-word)
), ),

View File

@ -45,7 +45,7 @@ Prevent text from wrapping with a `.text-nowrap` class.
## Word break ## Word break
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `overflow-wrap: break-word` (and `word-wrap: 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`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support.
{{< example >}} {{< example >}}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p> <p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>