mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
Change the text color to dark on bg color warning examples (#24805)
This commit is contained in:
@@ -30,7 +30,7 @@ Similar to the contextual text color classes, easily set the background of an el
|
|||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
{% for color in site.data.theme-colors %}
|
{% 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>
|
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ When `$enable-gradients` is set to true, you'll be able to use `.bg-gradient-` u
|
|||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
{% for color in site.data.theme-colors %}
|
{% 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 %}
|
{% endexample %}
|
||||||
|
|
||||||
{% callout info %}
|
{% callout info %}
|
||||||
|
Reference in New Issue
Block a user