diff options
| author | Mark Otto <[email protected]> | 2014-03-09 12:39:29 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-09 12:39:29 -0700 |
| commit | 29f23576ee301cf476ce66b979ddec338663336b (patch) | |
| tree | 80037fa54ba56ab75b13f56f0aa2293a1f0f99be /docs/css.html | |
| parent | 5e6d16ef4dc531e284bf629a9336f608847bd608 (diff) | |
| parent | d8bc65b9d035d15a61bd6fe259b4ffb49c211404 (diff) | |
| download | bootstrap-29f23576ee301cf476ce66b979ddec338663336b.tar.xz bootstrap-29f23576ee301cf476ce66b979ddec338663336b.zip | |
Merge pull request #12679 from twbs/sr-only-focusable
add .sr-only-focusable
Diffstat (limited to 'docs/css.html')
| -rw-r--r-- | docs/css.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/css.html b/docs/css.html index fea9711eb..6b1a6c222 100644 --- a/docs/css.html +++ b/docs/css.html @@ -2611,15 +2611,16 @@ For example, <code><section></code> should be wrapped as inline. {% endhighlight %} - <h3 id="helper-classes-screen-readers">Screen reader content</h3> - <p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Necessary for following <a href="../getting-started/#accessibility">accessibility best practices</a>. Can also be used as a mixin.</p> + <h3 id="helper-classes-screen-readers">Screen reader and keyboard navigation content</h3> + <p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Combine <code>.sr-only</code> with <code>.sr-only-focusable</code> to show the element again when it's focused (e.g. by a keyboard-only user). Necessary for following <a href="../getting-started/#accessibility">accessibility best practices</a>. Can also be used as mixins.</p> {% highlight html %} -<a class="sr-only" href="#content">Skip to main content</a> +<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a> {% endhighlight %} {% highlight scss %} // Usage as a Mixin .skip-navigation { .sr-only(); + .sr-only-focusable(); } {% endhighlight %} |
