diff options
| author | Steven Black <[email protected]> | 2015-02-27 20:36:51 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-03-03 18:26:38 +0200 |
| commit | 0862d1410ec9347a75915c4eb0dc59447cb46dad (patch) | |
| tree | 3b21dff4c04cacbe2831ca2ae513634432ff91f8 /docs/_includes/getting-started/accessibility.html | |
| parent | 457885075f8fa004f3a190efdcf381af218e1bb7 (diff) | |
| download | bootstrap-0862d1410ec9347a75915c4eb0dc59447cb46dad.tar.xz bootstrap-0862d1410ec9347a75915c4eb0dc59447cb46dad.zip | |
Accessibility and headings hierarchy for the "Getting started" page.
Closes #15946 by merging it.
Diffstat (limited to 'docs/_includes/getting-started/accessibility.html')
| -rw-r--r-- | docs/_includes/getting-started/accessibility.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/_includes/getting-started/accessibility.html b/docs/_includes/getting-started/accessibility.html index 927898e8d..2198a601a 100644 --- a/docs/_includes/getting-started/accessibility.html +++ b/docs/_includes/getting-started/accessibility.html @@ -2,7 +2,7 @@ <h1 id="accessibility" class="page-header">Accessibility</h1> <p class="lead">Bootstrap follows common web standards and—with minimal extra effort—can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class="initialism">AT</abbr>.</p> - <h3>Skip navigation</h3> + <h2>Skip navigation</h2> <p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to main content</code> link before the navigation (for a simple explanation, see this <a href="http://a11yproject.com/posts/skip-nav-links/">A11Y Project article on skip navigation links</a>). Using the <code>.sr-only</code> class will visually hide the skip link, and the <code>.sr-only-focusable</code> class will ensure that the link becomes visible once focused (for sighted keyboard users).</p> <div class="bs-callout bs-callout-danger" id="callout-skiplinks"> <p>Due to long-standing shortcomings/bugs in Chrome (see <a href="https://code.google.com/p/chromium/issues/detail?id=262171" title="Chromium bug tracker - Issue 262171: Focus should cycle from named anchor">issue 262171 in the Chromium bug tracker</a>) and Internet Explorer (see this article on <a href="http://accessibleculture.org/articles/2010/05/in-page-links/">in-page links and focus order</a>), you will need to make sure that the target of your skip link is at least programmatically focusable by adding <code>tabindex="-1"</code>.</p> @@ -19,14 +19,14 @@ </body> {% endhighlight %} - <h3>Nested headings</h3> + <h2>Nested headings</h2> <p>When nesting headings (<code><h1></code> - <code><h6></code>), your primary document header should be an <code><h1></code>. Subsequent headings should make logical use of <code><h2></code> - <code><h6></code> such that screen readers can construct a table of contents for your pages.</p> <p>Learn more at <a href="http://squizlabs.github.io/HTML_CodeSniffer/Standards/Section508/">HTML CodeSniffer</a> and <a href="http://accessibility.psu.edu/headings">Penn State's AccessAbility</a>.</p> - <h3>Color contrast</h3> + <h2>Color contrast</h2> <p>Currently, some of the default color combinations available in Bootstrap (such as the various <a href="../css/#buttons">styled button</a> classes, some of the code highlighting colors used for <a href="../css/#code-block">basic code blocks</a>, the <code>.bg-primary</code> <a href="../css/#helper-classes-backgrounds">contextual background</a> helper class, and the default link color when used on a white background) have a low contrast ratio (below the <a href="http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast">recommended ratio of 4.5:1</a>). This can cause problems to users with low vision or who are color blind. These default colors may need to be modified to increase their contrast and legibility.</p> - <h3>Additional resources</h3> + <h2>Additional resources</h2> <ul> <li><a href="https://github.com/squizlabs/HTML_CodeSniffer">"HTML Codesniffer" bookmarklet for identifying accessibility issues</a></li> <li><a href="https://chrome.google.com/webstore/detail/accessibility-developer-t/fpkknkljclfencbdbgkenhalefipecmb?hl=en">Chrome's Accessibility Developer Tools extension</a></li> |
