forked from kufu/smarthr-ui
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add style for visually hidden (kufu#963)
* feat: add style for visually hidden * chore: change variable name
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
import { css } from 'styled-components' | ||
|
||
export const VISUALLY_HIDDEN_STYLE = css` | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
margin: -1px; | ||
border: 0; | ||
padding: 0; | ||
white-space: nowrap; | ||
clip-path: inset(100%); | ||
clip: rect(0 0 0 0); | ||
overflow: hidden; | ||
` | ||
export const FONT_FAMILY = 'system-ui, sans-serif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters