From: Patrick H. Lauke Date: Sun, 21 Jun 2020 11:07:20 +0000 (+0100) Subject: Docs: rename "Screen readers" helper page to "Visually hidden" X-Git-Tag: v5.0.0-alpha2~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a79335a0b21cc5bbd3f133e63aec6052694fc20;p=thirdparty%2Fbootstrap.git Docs: rename "Screen readers" helper page to "Visually hidden" "screen readers" is quite reductive, as there are other assistive technologies. content hidden this way is even announced by things like Alexa/Siri etc, so it's not so much just "screen readers". in the long run, we may even consider changing the actual classnames (maybe `.visually-hidden` / `.visually-hidden-focusable`, though admittedly that's a bit verbose). also includes a tiny tweak to layout.md to generalise the note about using `.sr-only` --- diff --git a/scss/_helpers.scss b/scss/_helpers.scss index 1fdbc2959d..2fb66e4eac 100644 --- a/scss/_helpers.scss +++ b/scss/_helpers.scss @@ -2,6 +2,6 @@ @import "helpers/colored-links"; @import "helpers/embed"; @import "helpers/position"; -@import "helpers/screenreaders"; +@import "helpers/visually-hidden"; @import "helpers/stretched-link"; @import "helpers/text-truncation"; diff --git a/scss/helpers/_screenreaders.scss b/scss/helpers/_visually-hidden.scss similarity index 83% rename from scss/helpers/_screenreaders.scss rename to scss/helpers/_visually-hidden.scss index 8bade66339..0a843d383d 100644 --- a/scss/helpers/_screenreaders.scss +++ b/scss/helpers/_visually-hidden.scss @@ -1,5 +1,5 @@ // -// Screenreaders +// Visually hidden // .visually-hidden, diff --git a/site/content/docs/5.0/forms/layout.md b/site/content/docs/5.0/forms/layout.md index a97a7e9e5a..3a4d0e7fa1 100644 --- a/site/content/docs/5.0/forms/layout.md +++ b/site/content/docs/5.0/forms/layout.md @@ -297,7 +297,7 @@ You can then remix that once again with size-specific column classes. Use the `.col-auto` class to create horizontal layouts. By adding [gutter modifier classes]({{< docsref "/layout/gutters" >}}), we'll have gutters in horizontal and vertical directions. The `.align-items-center` aligns the form elements to the middle, making the `.form-checkbox` align properly. -Be sure to always include a `