aboutsummaryrefslogtreecommitdiff
path: root/docs/4.0
diff options
context:
space:
mode:
authorAndres Galante <[email protected]>2017-11-17 01:57:49 -0300
committerXhmikosR <[email protected]>2017-11-17 06:57:49 +0200
commit8df34b075a1ffffcc90d37fc44fac07c4c5d5791 (patch)
tree1ff1fb21296c8473784b2eeb11c59c53526eb72a /docs/4.0
parent81cf6c4968f44369a6363aa088f94312a294608c (diff)
downloadbootstrap-8df34b075a1ffffcc90d37fc44fac07c4c5d5791.tar.xz
bootstrap-8df34b075a1ffffcc90d37fc44fac07c4c5d5791.zip
Change the text color to dark on bg color warning examples (#24805)
Diffstat (limited to 'docs/4.0')
-rw-r--r--docs/4.0/utilities/colors.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md
index 10d6e5ae3..7543aa0bf 100644
--- a/docs/4.0/utilities/colors.md
+++ b/docs/4.0/utilities/colors.md
@@ -30,7 +30,7 @@ Similar to the contextual text color classes, easily set the background of an el
{% example html %}
{% for color in site.data.theme-colors %}
-<div class="p-3 mb-2 bg-{{ color.name }} {% if color.name == "light" %}text-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
+<div class="p-3 mb-2 bg-{{ color.name }} {% if color.name == "light" or color.name == "warning" %}text-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
{% endexample %}
@@ -40,7 +40,7 @@ When `$enable-gradients` is set to true, you'll be able to use `.bg-gradient-` u
{% example html %}
{% for color in site.data.theme-colors %}
-<div class="p-3 mb-2 bg-gradient-{{ color.name }} {% if color.name == "light" %}text-dark{% else %}text-white{% endif %}">.bg-gradient-{{ color.name }}</div>{% endfor %}
+<div class="p-3 mb-2 bg-gradient-{{ color.name }} {% if color.name == "light" or color.name == "warning" %}text-dark{% else %}text-white{% endif %}">.bg-gradient-{{ color.name }}</div>{% endfor %}
{% endexample %}
{% callout info %}