]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #10417: Document `.hidden` in the Helper classes *Screen reader content* section
authorMark Otto <otto@github.com>
Wed, 4 Sep 2013 19:08:07 +0000 (12:08 -0700)
committerMark Otto <otto@github.com>
Wed, 4 Sep 2013 19:08:07 +0000 (12:08 -0700)
css.html

index 64540ad61ce65fdfa68aae8d646cfb4bd7a82356..c6701a66a27b69aca33f0656f9d19e5d4f07ec09 100644 (file)
--- 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 %}