Commit 1edba807 authored by XhmikosR's avatar XhmikosR
Browse files

badge.md: use `text-dark` for warning.

parent fbeed6f1
2 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30064test
Showing with 2 additions and 2 deletions
+2 -2
...@@ -45,7 +45,7 @@ Use our background utility classes to quickly change the appearance of a badge. ...@@ -45,7 +45,7 @@ Use our background utility classes to quickly change the appearance of a badge.
{{< example >}} {{< example >}}
{{< badge.inline >}} {{< badge.inline >}}
{{- range (index $.Site.Data "theme-colors") }} {{- 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 >}} {{< /badge.inline >}}
{{< /example >}} {{< /example >}}
...@@ -60,6 +60,6 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger ...@@ -60,6 +60,6 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger
{{< example >}} {{< example >}}
{{< badge.inline >}} {{< badge.inline >}}
{{- range (index $.Site.Data "theme-colors") }} {{- 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 >}} {{< /badge.inline >}}
{{< /example >}} {{< /example >}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment