* Remove clip-path from .sr-only utility as it causes perf regressions in Chrome
* change snippet to example
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
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
- clip-path: inset(50%);
border: 0;
}
overflow: visible;
clip: auto;
white-space: normal;
- clip-path: none;
}
}