Commit 2f459afb authored by Andres Galante's avatar Andres Galante Committed by Mark Otto
Browse files

Adds text-muted and text-white to the examples on color utilities (#23877)

parent a224387a
6 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 4 additions and 0 deletions
+4 -0
...@@ -9,6 +9,8 @@ toc: true ...@@ -9,6 +9,8 @@ toc: true
{% example html %} {% example html %}
{% for color in site.data.theme-colors %} {% for color in site.data.theme-colors %}
<p class="text-{{ color.name }}">.text-{{ color.name }}</p>{% endfor %} <p class="text-{{ color.name }}">.text-{{ color.name }}</p>{% endfor %}
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark p-2">.text-white</p>
{% endexample %} {% endexample %}
Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` class has no link styling.** Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` class has no link styling.**
...@@ -16,6 +18,8 @@ Contextual text classes also work well on anchors with the provided hover and fo ...@@ -16,6 +18,8 @@ Contextual text classes also work well on anchors with the provided hover and fo
{% example html %} {% example html %}
{% for color in site.data.theme-colors %} {% for color in site.data.theme-colors %}
<p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %} <p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
<p><a href="#" class="text-muted">Muted link</a></p>
<p class="bg-dark p-2"><a href="#" class="text-white">White link</a></p>
{% endexample %} {% endexample %}
Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities. Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities.
......
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