misc: add class to limit textual element to screenreaders (#42692)

This commit is contained in:
Frédéric Péters 2020-05-11 09:38:59 +02:00
parent 18806f6bfe
commit a57951805e
1 changed files with 17 additions and 0 deletions

View File

@ -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();
}