From 6682bba82db029ce62b1d63949a077ddd7eb0bb6 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 2 Nov 2020 20:39:49 +0000 Subject: [PATCH] Add callouts about using light colors ideally on a dark background (#32040) * Add callout about using light colors ideally on a dark background * Add callout to helpers > colored links as well --- site/content/docs/5.0/components/buttons.md | 4 ++++ site/content/docs/5.0/helpers/colored-links.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/site/content/docs/5.0/components/buttons.md b/site/content/docs/5.0/components/buttons.md index 845aba72242f..ab31bb21567f 100644 --- a/site/content/docs/5.0/components/buttons.md +++ b/site/content/docs/5.0/components/buttons.md @@ -54,6 +54,10 @@ In need of a button, but not the hefty background colors they bring? Replace the {{< /buttons.inline >}} {{< /example >}} +{{< callout info >}} +Some of the button styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast. +{{< /callout >}} + ## Sizes Fancy larger or smaller buttons? Add `.btn-lg` or `.btn-sm` for additional sizes. diff --git a/site/content/docs/5.0/helpers/colored-links.md b/site/content/docs/5.0/helpers/colored-links.md index f75cae42751c..ffaf7cdba45b 100644 --- a/site/content/docs/5.0/helpers/colored-links.md +++ b/site/content/docs/5.0/helpers/colored-links.md @@ -15,3 +15,7 @@ You can use the `.link-*` classes to colorize links. Unlike the [`.text-*` class {{- end -}} {{< /colored-links.inline >}} {{< /example >}} + +{{< callout info >}} +Some of the link styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast. +{{< /callout >}}