aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2020-07-03 20:31:44 +0100
committerMark Otto <[email protected]>2020-07-10 16:00:50 -0700
commit69b3c464839ae09b2681451dfac978352e726e14 (patch)
treeaa4a926c960edd7a59bb3922b5b0b27b5c030086 /site/content/docs
parent9d2cd1b9b88b97da4ff0f78def8243230e535a18 (diff)
downloadbootstrap-69b3c464839ae09b2681451dfac978352e726e14.tar.xz
bootstrap-69b3c464839ae09b2681451dfac978352e726e14.zip
Rename `sr-only` to `visually-hidden` in new/renamed helper doc file
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/5.0/helpers/visually-hidden.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/site/content/docs/5.0/helpers/visually-hidden.md b/site/content/docs/5.0/helpers/visually-hidden.md
index 5392b801b..987d23b66 100644
--- a/site/content/docs/5.0/helpers/visually-hidden.md
+++ b/site/content/docs/5.0/helpers/visually-hidden.md
@@ -6,21 +6,21 @@ group: helpers
aliases: "/docs/5.0/helpers/screen-readers/"
---
-Visually hide an element while still allowing it to be exposed to assistive technologies (such as screen readers) with `.sr-only`. Use `.sr-only-focusable` to visually hide an element by default, but to display it when it's focused (e.g. by a keyboard-only user). Can also be used as mixins.
+Visually hide an element while still allowing it to be exposed to assistive technologies (such as screen readers) with `.visually-hidden`. Use `.visually-hidden-focusable` to visually hide an element by default, but to display it when it's focused (e.g. by a keyboard-only user). Can also be used as mixins.
{{< example >}}
-<h2 class="sr-only">Title for screen readers</h2>
-<a class="sr-only-focusable" href="#content">Skip to main content</a>
+<h2 class="visually-hidden">Title for screen readers</h2>
+<a class="visually-hidden-focusable" href="#content">Skip to main content</a>
{{< /example >}}
{{< highlight scss >}}
// Usage as a mixin
-.sr-only-title {
- @include sr-only;
+.visually-hidden-title {
+ @include visually-hidden;
}
.skip-navigation {
- @include sr-only-focusable;
+ @include visually-hidden-focusable;
}
{{< /highlight >}}