2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Update .sr-only mixin and utility (#25197)

* Remove clip-path from .sr-only utility as it causes perf regressions in Chrome

* change snippet to example
This commit is contained in:
Mark Otto
2018-02-11 15:05:50 -08:00
committed by GitHub
parent e373fbea92
commit 98111214c2
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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 %}
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
{% endhighlight %}
{% endexample %}
{% highlight scss %}
// Usage as a mixin