From 019a9774817ff8269821c36dd102554b739d35df Mon Sep 17 00:00:00 2001 From: EricDunsworth <1907279+EricDunsworth@users.noreply.github.com> Date: Tue, 29 Nov 2022 02:07:27 -0500 Subject: [PATCH] Docs: Add black text/background examples (#37538) These classes have existed since 5.1 but weren't previously documented. Specifically: * .text-black * .bg-black * .bg-black.bg-gradient Co-authored-by: Mark Otto --- site/content/docs/5.2/utilities/background.md | 3 ++- site/content/docs/5.2/utilities/colors.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/site/content/docs/5.2/utilities/background.md b/site/content/docs/5.2/utilities/background.md index ef7b2468e8..dad71ec372 100644 --- a/site/content/docs/5.2/utilities/background.md +++ b/site/content/docs/5.2/utilities/background.md @@ -17,11 +17,11 @@ Similar to the contextual text color classes, set the background of an element t
.bg-{{ .name }}-subtle
{{- end -}} {{< /colors.inline >}} -

.bg-body-secondary

.bg-body-tertiary

.bg-body
+
.bg-black
.bg-white
.bg-transparent
{{< /example >}} @@ -38,6 +38,7 @@ Do you need a gradient in your custom CSS? Just add `background-image: var(--bs-
.bg-{{ .name }}.bg-gradient
{{- end -}} {{< /colors.inline >}} +
.bg-black.bg-gradient
{{< /markdown >}} ## Opacity diff --git a/site/content/docs/5.2/utilities/colors.md b/site/content/docs/5.2/utilities/colors.md index 94418ac5e2..4b1647242c 100644 --- a/site/content/docs/5.2/utilities/colors.md +++ b/site/content/docs/5.2/utilities/colors.md @@ -24,6 +24,7 @@ Colorize text with color utilities. If you want to colorize links, you can use t

.text-body-secondary

.text-body-tertiary

+

.text-black

.text-white

.text-black-50

.text-white-50