feat: add srOnly class
This commit is contained in:
15
src/styles/srOnly.ts
Normal file
15
src/styles/srOnly.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { css } from '@styled-system/css'
|
||||||
|
|
||||||
|
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
|
||||||
|
})
|
||||||
|
|
||||||
|
export default srOnlyClass
|
||||||
Reference in New Issue
Block a user