feat(styles): add screen reader only utility class
This commit is contained in:
13
src/styles/srOnly.ts
Normal file
13
src/styles/srOnly.ts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { css } from '@styled-system/css'
|
||||||
|
|
||||||
|
export const srOnlyClass = css({
|
||||||
|
position: 'absolute',
|
||||||
|
width: 1,
|
||||||
|
height: 1,
|
||||||
|
padding: 0,
|
||||||
|
margin: -1,
|
||||||
|
overflow: 'hidden',
|
||||||
|
clip: 'rect(0, 0, 0, 0)',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
border: 0
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user