Skip to content

Commit

Permalink
feat(helper): add sr-only style
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 25, 2024
1 parent 9bffe9a commit 04b856d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"./noopModule": "./lib/client/noopModule.js",
"./colors.css": "./lib/client/styles/colors.css",
"./normalize.css": "./lib/client/styles/normalize.css",
"./sr-only.css": "./lib/client/styles/sr-only.css",
"./package.json": "./package.json"
},
"main": "./lib/node/index.js",
Expand Down
18 changes: 18 additions & 0 deletions tools/helper/src/client/styles/sr-only.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.sr-only {
@media screen {
position: absolute;

overflow: hidden;
clip: rect (0, 0, 0, 0);

width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
}

@media print {
display: none;
}
}

0 comments on commit 04b856d

Please sign in to comment.