misc: add class to limit textual element to screenreaders (#42692)
This commit is contained in:
parent
18806f6bfe
commit
a57951805e
|
@ -21,3 +21,20 @@
|
|||
@return #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
// Only display content to screen readers
|
||||
@mixin sr-only {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
padding: 0 !important;
|
||||
margin: -1px !important;
|
||||
overflow: hidden !important;
|
||||
clip: rect(0, 0, 0, 0) !important;
|
||||
white-space: nowrap !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
@include sr-only();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue