From: Patrick H. Lauke Date: Fri, 3 Jul 2020 19:31:44 +0000 (+0100) Subject: Rename `sr-only` to `visually-hidden` in new/renamed helper doc file X-Git-Tag: v5.0.0-alpha2~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b3c464839ae09b2681451dfac978352e726e14;p=thirdparty%2Fbootstrap.git Rename `sr-only` to `visually-hidden` in new/renamed helper doc file --- diff --git a/site/content/docs/5.0/helpers/visually-hidden.md b/site/content/docs/5.0/helpers/visually-hidden.md index 5392b801b1..987d23b666 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 >}} -

Title for screen readers

-Skip to main content +

Title for screen readers

+Skip to main content {{< /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 >}}