Skip to content

Commit

Permalink
Add sr-only class for screen reader accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed Jan 17, 2024
1 parent 6da1963 commit 5aa2eb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/shared/globalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ const GlobalStyle = createGlobalStyle`${(props) => {
padding: 0;
margin: 0;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
img {
max-width: 100%;
}
Expand Down

0 comments on commit 5aa2eb6

Please sign in to comment.