Skip to content

Commit a95d93d

Browse files
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Re-implement Modal component using HTMLDialogElement (#461)
1 parent 0ca0ee3 commit a95d93d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Modal/Modal.module.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@
3838

3939
.root[open] {
4040
display: flex;
41-
animation: fade-in theme.$animation-duration ease-out;
41+
42+
@media (prefers-reduced-motion: no-preference) {
43+
animation: fade-in theme.$animation-duration ease-out;
44+
}
4245
}
4346

4447
.root[open]::backdrop {
4548
background: theme.$backdrop-background;
46-
animation: inherit;
49+
50+
@media (prefers-reduced-motion: no-preference) {
51+
animation: inherit;
52+
}
4753
}
4854

4955
.isRootSizeSmall {

0 commit comments

Comments
 (0)