Add visually hidden CSS class

This commit is contained in:
Helen Chong 2024-05-17 22:35:35 +08:00
parent 7bac81e40f
commit c8b7157a92
2 changed files with 28 additions and 0 deletions

View File

@ -523,3 +523,17 @@ main {
display: grid; display: grid;
gap: 0.7em; gap: 0.7em;
} }
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
outline: 0;
outline-offset: 0;
}

View File

@ -523,3 +523,17 @@ main {
display: grid; display: grid;
gap: 0.7em; gap: 0.7em;
} }
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
outline: 0;
outline-offset: 0;
}