0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +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,
values: italic normal
),
"overflow-wrap": (
property: overflow-wrap word-wrap, // word-wrap for IE & < Edge 18
"word-wrap": (
property: word-wrap,
class: text,
values: (break: break-word)
),

View File

@ -45,7 +45,7 @@ Prevent text from wrapping with a `.text-nowrap` class.
## 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 >}}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>