]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Change the text color to dark on bg color warning examples (#24805)
authorAndres Galante <agalante@gmail.com>
Fri, 17 Nov 2017 04:57:49 +0000 (01:57 -0300)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 17 Nov 2017 04:57:49 +0000 (06:57 +0200)
docs/4.0/utilities/colors.md

index 10d6e5ae341deda8a991e50ddade28291deacf39..7543aa0bfc62acc5decbf8a39d7a163a1f496248 100644 (file)
@@ -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 %}