diff --git a/docs/4.0/utilities/screenreaders.md b/docs/4.0/utilities/screenreaders.md index 7888143e44..7f1165d8e4 100644 --- a/docs/4.0/utilities/screenreaders.md +++ b/docs/4.0/utilities/screenreaders.md @@ -12,9 +12,9 @@ Hide an element to all devices **except screen readers** with `.sr-only`. Combin Necessary for following [accessibility best practices]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/#accessibility). {%- endcomment -%} -{% highlight html %} +{% example html %} Skip to main content -{% endhighlight %} +{% endexample %} {% highlight scss %} // Usage as a mixin diff --git a/scss/mixins/_screen-reader.scss b/scss/mixins/_screen-reader.scss index 8f3eb1b19c..f9cd35cffe 100644 --- a/scss/mixins/_screen-reader.scss +++ b/scss/mixins/_screen-reader.scss @@ -11,7 +11,6 @@ overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; - clip-path: inset(50%); border: 0; } @@ -30,6 +29,5 @@ overflow: visible; clip: auto; white-space: normal; - clip-path: none; } }