diff options
| author | XhmikosR <[email protected]> | 2019-08-03 18:47:13 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-09-16 23:41:57 +0300 |
| commit | 1edba8072db996d72a9b774953c9137eb2159432 (patch) | |
| tree | 9e920a3441c8a5adb1048e77a632bad117bbdc9b | |
| parent | fbeed6f1d9a89d2fbe97312dfb94b6b8f85c195b (diff) | |
| download | bootstrap-1edba8072db996d72a9b774953c9137eb2159432.tar.xz bootstrap-1edba8072db996d72a9b774953c9137eb2159432.zip | |
badge.md: use `text-dark` for warning.
| -rw-r--r-- | site/content/docs/4.3/components/badge.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/4.3/components/badge.md b/site/content/docs/4.3/components/badge.md index 2d3bc69e8..5f17b685b 100644 --- a/site/content/docs/4.3/components/badge.md +++ b/site/content/docs/4.3/components/badge.md @@ -45,7 +45,7 @@ Use our background utility classes to quickly change the appearance of a badge. {{< example >}} {{< badge.inline >}} {{- range (index $.Site.Data "theme-colors") }} -<span class="badge bg-{{ .name }}{{ if eq .name "light" }} text-dark{{ end }}">{{ .name | title }}</span>{{- end -}} +<span class="badge bg-{{ .name }}{{ if or (eq .name "light") (eq .name "warning") }} text-dark{{ end }}">{{ .name | title }}</span>{{- end -}} {{< /badge.inline >}} {{< /example >}} @@ -60,6 +60,6 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger {{< example >}} {{< badge.inline >}} {{- range (index $.Site.Data "theme-colors") }} -<span class="badge rounded-pill bg-{{ .name }}{{ if eq .name "light" }} text-dark{{ end }}">{{ .name | title }}</span>{{- end -}} +<span class="badge rounded-pill bg-{{ .name }}{{ if or (eq .name "light") (eq .name "warning") }} text-dark{{ end }}">{{ .name | title }}</span>{{- end -}} {{< /badge.inline >}} {{< /example >}} |
