summaryrefslogtreecommitdiffstats
path: root/apps/web-shared/src/styles/base/_accessibility.scss
blob: 9f719378f3f6ee61e9245e298020a9e14d0a1e72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.sr-only { // content made available only to screen readers
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.sr-only-focusable { // focusable, visually hidden element
  &:not(:focus):not(:focus-within){
    @extend .sr-only
  }
}