Skip to content

Commit a7363f4

Browse files
feat(modal): add visually-hidden styles for dialog dismissHelpers
1 parent 0b1bd0a commit a7363f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/modal/src/modal.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,16 @@
2424
.modal {
2525
overflow: visible;
2626
}
27+
28+
.visually-hidden {
29+
border: 0;
30+
clip: rect(0, 0, 0, 0);
31+
clip-path: inset(50%);
32+
height: 1px;
33+
margin: 0 -1px -1px 0;
34+
overflow: hidden;
35+
padding: 0;
36+
position: absolute;
37+
width: 1px;
38+
white-space: nowrap;
39+
}

0 commit comments

Comments
 (0)