2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

- Conveying color meaning to AT as markdown include

- Add/replace callout for color and AT with include
This commit is contained in:
Patrick H. Lauke
2016-02-17 10:22:48 +00:00
parent bfe3c590df
commit 40aee9325d
8 changed files with 24 additions and 10 deletions
+2 -5
View File
@@ -39,11 +39,8 @@ Bootstrap includes six predefined button styles, each serving its own semantic p
<button type="button" class="btn btn-link">Link</button>
{% endexample %}
{% callout warning %}
#### Conveying meaning to assistive technologies
Using color to add meaning to a button only provides a visual indication, which will not be conveyed to users of assistive technologies such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the visible text of the button), or is included through alternative means, such as additional text hidden with the `.sr-only` class.
{% endcallout %}
{% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %}
{{ callout-include | markdownify }}
## Button tags