aboutsummaryrefslogtreecommitdiff
path: root/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-09-04 12:08:07 -0700
committerMark Otto <[email protected]>2013-09-04 12:08:07 -0700
commit6ce9b4d0419b1afbea11afe65a47c82966a89a2a (patch)
tree171bab03831e53cb8047ff2f23ed28e81a327f5c /css.html
parentd8dc805f9b2b89ee48eb0f00337c6c37a6434117 (diff)
downloadbootstrap-6ce9b4d0419b1afbea11afe65a47c82966a89a2a.tar.xz
bootstrap-6ce9b4d0419b1afbea11afe65a47c82966a89a2a.zip
Fixes #10417: Document `.hidden` in the Helper classes *Screen reader content* section
Diffstat (limited to 'css.html')
-rw-r--r--css.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/css.html b/css.html
index 64540ad61..c6701a66a 100644
--- a/css.html
+++ b/css.html
@@ -2353,7 +2353,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<h3 id="helper-classes-screen-readers">Screen reader content</h3>
- <p>Hide an element to all users <em>except</em> screen readers with <code>.sr-only</code>. Necessary for following <a href="{{ page.base_url }}getting-started#accessibility">accessibility best practices</a>. Can also be used as a mixin.</p>
+ <p>Hide an element everywhere, <strong>including screen readers</strong>, with <code>.hidden</code>. Can also be used as a mixin.</p>
+{% highlight html %}
+<div class="hidden"></div>
+{% endhighlight %}
+{% highlight css %}
+// Usage as a Mixin
+.example {
+ .hidden();
+}
+{% endhighlight %}
+
+ <p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Necessary for following <a href="{{ page.base_url }}getting-started#accessibility">accessibility best practices</a>. Can also be used as a mixin.</p>
{% highlight html %}
<a class="sr-only" href="#content">Skip to content</a>
{% endhighlight %}