fix(overlay-manager): disable transition when reduced motion enabled
This commit is contained in:
parent
edc6920a90
commit
e090d2d861
2 changed files with 15 additions and 0 deletions
5
.changeset/five-dolls-begin.md
Normal file
5
.changeset/five-dolls-begin.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/ui': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
adds support for reduced motion capabilities in overlay manager by disabling the opacity transition when a modal is opened/closed
|
||||||
|
|
@ -126,4 +126,14 @@ export const globalOverlaysStyle = css`
|
||||||
html.global-overlays-scroll-lock-ios-fix {
|
html.global-overlays-scroll-lock-ios-fix {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (prefers-reduced-motion: reduce) {
|
||||||
|
.global-overlays .global-overlays__backdrop--animation-in {
|
||||||
|
animation: global-overlays-backdrop-fade-in 1ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.global-overlays .global-overlays__backdrop--animation-out {
|
||||||
|
animation: global-overlays-backdrop-fade-out 1ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue