mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00:00
Restore word-break: break-word on .text-break to fix text breaking on flex containers (#30932)
This commit is contained in:
parent
1f1b147f19
commit
c682e751bf
@ -440,7 +440,7 @@ $utilities: map-merge(
|
|||||||
values: italic normal
|
values: italic normal
|
||||||
),
|
),
|
||||||
"word-wrap": (
|
"word-wrap": (
|
||||||
property: word-wrap,
|
property: word-wrap word-break,
|
||||||
class: text,
|
class: text,
|
||||||
values: (break: break-word)
|
values: (break: break-word)
|
||||||
),
|
),
|
||||||
|
@ -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 `word-wrap: break-word`. We use `word-wrap` instead of the more common `overflow-wrap` for wider browser support.
|
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.
|
||||||
|
|
||||||
{{< example >}}
|
{{< example >}}
|
||||||
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
|
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user