aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-07 11:26:02 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-07 11:26:02 +0200
commit54fa28441c5f0bdcd9687615f4a6b7a0fab024a3 (patch)
tree33866b82c7ba3a6f6ecb9e6ca69233fc65379b43 /vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md
parentbb42ec2bfc0826dde3e3915566c4689762b128d7 (diff)
downloadvolse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.tar.gz
volse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.tar.bz2
volse-hubzilla-54fa28441c5f0bdcd9687615f4a6b7a0fab024a3.zip
install bootstrap via composer
Diffstat (limited to 'vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md')
-rw-r--r--vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md b/vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md
new file mode 100644
index 000000000..311102c6a
--- /dev/null
+++ b/vendor/twbs/bootstrap/site/docs/4.1/utilities/screenreaders.md
@@ -0,0 +1,26 @@
+---
+layout: docs
+title: Screenreaders
+description: Use screenreader utilities to hide elements on all devices except screen readers.
+group: utilities
+toc: true
+---
+
+Hide an element to all devices **except screen readers** with `.sr-only`. Combine `.sr-only` with `.sr-only-focusable` to show the element again when it's focused (e.g. by a keyboard-only user). Can also be used as mixins.
+
+{%- comment -%}
+Necessary for following [accessibility best practices]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/#accessibility).
+{%- endcomment -%}
+
+{% capture example %}
+<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
+{% endcapture %}
+{% include example.html content=example %}
+
+{% highlight scss %}
+// Usage as a mixin
+.skip-navigation {
+ @include sr-only;
+ @include sr-only-focusable;
+}
+{% endhighlight %}