From a7e1b914ef43fee0d309b9463f7f5bc5442845ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABl=20Poupard?= Date: Mon, 30 Mar 2020 14:07:09 +0200 Subject: [PATCH] docs(colors): better color utilities pairing to ensure sufficient contrast --- site/content/docs/5.0/components/card.md | 4 ++-- site/content/docs/5.0/components/navbar.md | 2 +- site/content/docs/5.0/utilities/colors.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/site/content/docs/5.0/components/card.md b/site/content/docs/5.0/components/card.md index 3b250db735..015b5d9362 100644 --- a/site/content/docs/5.0/components/card.md +++ b/site/content/docs/5.0/components/card.md @@ -422,7 +422,7 @@ Use [text and background utilities]({{< docsref "/utilities/colors" >}}) to chan {{< example >}} {{< card.inline >}} {{- range (index $.Site.Data "theme-colors") }} -
+
Header
{{ .name | title }} card title
@@ -446,7 +446,7 @@ Use [border utilities]({{< docsref "/utilities/borders" >}}) to change just the {{- range (index $.Site.Data "theme-colors") }}
Header
-
+
{{ .name | title }} card title

Some quick example text to build on the card title and make up the bulk of the card's content.

diff --git a/site/content/docs/5.0/components/navbar.md b/site/content/docs/5.0/components/navbar.md index e50821b8c0..e47833e8bf 100644 --- a/site/content/docs/5.0/components/navbar.md +++ b/site/content/docs/5.0/components/navbar.md @@ -338,7 +338,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl
- +
diff --git a/site/content/docs/5.0/utilities/colors.md b/site/content/docs/5.0/utilities/colors.md index 86f4741466..76788034be 100644 --- a/site/content/docs/5.0/utilities/colors.md +++ b/site/content/docs/5.0/utilities/colors.md @@ -13,7 +13,7 @@ Colorize text with color utilities. If you want to colorize links, you can use t {{< example >}} {{< colors.inline >}} {{- range (index $.Site.Data "theme-colors") }} -

.text-{{ .name }}

+

.text-{{ .name }}

{{- end -}} {{< /colors.inline >}}

.text-body

@@ -30,7 +30,7 @@ Similar to the contextual text color classes, easily set the background of an el {{< example >}} {{< colors.inline >}} {{- range (index $.Site.Data "theme-colors") }} -
.bg-{{ .name }}
+
.bg-{{ .name }}
{{- end -}} {{< /colors.inline >}}
.bg-white
-- 2.47.2