@codecademy/gamut-styles

17.14.017.14.1-alpha.0ee3d6.0
utils/mixins/_sr-only.scss
utils/mixins/_sr-only.scssDeleted
−37
Index: package/utils/mixins/_sr-only.scss
===================================================================
--- package/utils/mixins/_sr-only.scss
+++ package/utils/mixins/_sr-only.scss
@@ -1,37 +0,0 @@
-// shamelessly stolen from bootstrap
-// https://github.com/twbs/bootstrap/blob/2085c142679563189dbc34ec6bf4b00e32b8f615/scss/mixins/_screen-reader.scss
-
-@mixin screenreader-only {
-  position: absolute;
-  width: 1px;
-  height: 1px;
-  padding: 0;
-  overflow: hidden;
-  clip: rect(0, 0, 0, 0);
-  white-space: nowrap;
-  clip-path: inset(50%);
-  border: 0;
-}
-
-@mixin sr-only {
-  @warn "This is deprecated, please use screenreader-only";
-  @include screenreader-only;
-}
-
-@mixin screenreader-only-focusable {
-  &:active,
-  &:focus {
-    position: static;
-    width: auto;
-    height: auto;
-    overflow: visible;
-    clip: auto;
-    white-space: normal;
-    clip-path: none;
-  }
-}
-
-@mixin sr-only-focusable {
-  @warn "This is deprecated, please use screenreader-only-focusable";
-  @include screenreader-only-focusable;
-}