diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2020-07-03 14:38:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 14:38:11 +0300 |
commit | 10690dd31778fa5114d9c357867d8c7bea597bc0 (patch) | |
tree | 43b7606c9f7ba302b7a90f844e4cc8a02fbe6789 /site/layouts | |
parent | 0a6cf9036c6bc3c5d1c68de971c95b70f5125aca (diff) |
Rename `sr-only`/`sr-only-focusable` (#31139)
* Rename `sr-only`/`sr-only-focusable`
To be more representative of the fact that these are not necessarily "screen reader" specific, but actually apply to assistive technologies in general (and also things like Alexa/Siri/etc). Goes hand-in-hand with #31133
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'site/layouts')
-rw-r--r-- | site/layouts/partials/callout-warning-color-assistive-technologies.md | 2 | ||||
-rw-r--r-- | site/layouts/partials/skippy.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/site/layouts/partials/callout-warning-color-assistive-technologies.md b/site/layouts/partials/callout-warning-color-assistive-technologies.md index f0c2e9de53..35683281d6 100644 --- a/site/layouts/partials/callout-warning-color-assistive-technologies.md +++ b/site/layouts/partials/callout-warning-color-assistive-technologies.md @@ -1,3 +1,3 @@ ##### Conveying meaning to assistive technologies -Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.sr-only` class. +Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.visually-hidden` class. diff --git a/site/layouts/partials/skippy.html b/site/layouts/partials/skippy.html index a060e714b0..8dce2bc495 100644 --- a/site/layouts/partials/skippy.html +++ b/site/layouts/partials/skippy.html @@ -1,5 +1,5 @@ -<a class="skippy sr-only-focusable" href="#content">Skip to main content</a> +<a class="skippy visually-hidden-focusable" href="#content">Skip to main content</a> {{ if (eq .Page.Layout "docs") }} - <a class="skippy sr-only-focusable d-none d-md-block" href="#bd-docs-nav">Skip to docs navigation</a> + <a class="skippy visually-hidden-focusable d-none d-md-block" href="#bd-docs-nav">Skip to docs navigation</a> {{- end }} |