aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-12-30 21:33:34 +0100
committerXhmikosR <[email protected]>2019-12-30 22:33:34 +0200
commitbd278341989e115e95fe29bc4738b440087f6d75 (patch)
tree096e4c0c0b899e17ae6fc4ae7dfe60aeddfae485
parentc30abbe112024b41a7cbdb3882e868955ceb5b0f (diff)
downloadbootstrap-bd278341989e115e95fe29bc4738b440087f6d75.tar.xz
bootstrap-bd278341989e115e95fe29bc4738b440087f6d75.zip
Drop `.text-justify` class (#29793)
Co-authored-by: XhmikosR <[email protected]>
-rw-r--r--scss/_utilities.scss2
-rw-r--r--site/content/docs/4.3/migration.md1
-rw-r--r--site/content/docs/4.3/utilities/text.md12
3 files changed, 7 insertions, 8 deletions
diff --git a/scss/_utilities.scss b/scss/_utilities.scss
index d3ead7d42..7c53a44c4 100644
--- a/scss/_utilities.scss
+++ b/scss/_utilities.scss
@@ -377,7 +377,7 @@ $utilities: map-merge(
responsive: true,
property: text-align,
class: text,
- values: left right center justify
+ values: left right center
),
"color": (
property: color,
diff --git a/site/content/docs/4.3/migration.md b/site/content/docs/4.3/migration.md
index 0f6ddf191..6783786c7 100644
--- a/site/content/docs/4.3/migration.md
+++ b/site/content/docs/4.3/migration.md
@@ -65,6 +65,7 @@ Changes to Reboot, typography, tables, and more.
- Simplified table styles (no more 2px border on `thead > th` elements) and tightened cell padding.
- Dropped `.pre-scrollable` class. [See #29135](https://github.com/twbs/bootstrap/pull/29135)
- `.text-*` utilities do not add hover and focus states to links anymore. `.link-*` helper classes can be used instead. [See #29267](https://github.com/twbs/bootstrap/pull/29267)
+- Drop `.text-justify` class. [See #229793](https://github.com/twbs/bootstrap/pull/29793)
## Forms
diff --git a/site/content/docs/4.3/utilities/text.md b/site/content/docs/4.3/utilities/text.md
index a194fc310..88f595b16 100644
--- a/site/content/docs/4.3/utilities/text.md
+++ b/site/content/docs/4.3/utilities/text.md
@@ -8,13 +8,7 @@ toc: true
## Text alignment
-Easily realign text to components with text alignment classes.
-
-{{< example >}}
-<p class="text-justify">Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus. Praeterea iter est quasdam res quas ex communi. At nos hinc posthac, sitientis piros Afros. Petierunt uti sibi concilium totius Galliae in diem certam indicere. Cras mattis iudicium purus sit amet fermentum.</p>
-{{< /example >}}
-
-For left, right, and center alignment, responsive classes are available that use the same viewport width breakpoints as the grid system.
+Easily realign text to components with text alignment classes. For left, right, and center alignment, responsive classes are available that use the same viewport width breakpoints as the grid system.
{{< example >}}
<p class="text-left">Left aligned text on all viewport sizes.</p>
@@ -27,6 +21,10 @@ For left, right, and center alignment, responsive classes are available that use
<p class="text-xl-left">Left aligned text on viewports sized XL (extra-large) or wider.</p>
{{< /example >}}
+{{< callout info >}}
+Note that we don't provide utility classes for justified text. While, aesthetically, justified text might look more appealing, it does make word-spacing more random and therefore harder to read.
+{{< /callout >}}
+
## Text wrapping and overflow
Wrap text with a `.text-wrap` class.