Skip to content

Commit

Permalink
Backport #31135
Browse files Browse the repository at this point in the history
* Move color utility callouts to start of page

Hierarchically/structurally, in the position they are currently at, the two callouts seem like they "belong" just to the "background color" section. Moving them to the start makes it clearer that those two callouts relate to everything in the page (both "Color" and "Background color" classes.

* Change heading level

otherwise the assistive technology callout looks like it's hierarchically under the "Dealing with specificity" heading
  • Loading branch information
XhmikosR committed Jul 6, 2020
1 parent c49b084 commit 234dd96
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions site/docs/4.5/utilities/colors.md
Expand Up @@ -6,6 +6,15 @@ group: utilities
toc: true
---

{% capture callout %}
#### Dealing with specificity

Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a `<div>` with the class.
{% endcapture %}
{% include callout.html content=callout type="info" %}

{% include callout-warning-color-assistive-technologies.md %}

## Color

{% capture example %}
Expand Down Expand Up @@ -47,12 +56,3 @@ When `$enable-gradients` is set to `true` (default is `false`), you can use `.bg

{% for color in site.data.theme-colors %}
- `.bg-gradient-{{ color.name }}`{% endfor %}

{% capture callout %}
#### Dealing with specificity

Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a `<div>` with the class.
{% endcapture %}
{% include callout.html content=callout type="info" %}

{% include callout-warning-color-assistive-technologies.md %}

0 comments on commit 234dd96

Please sign in to comment.