Skip to content

Commit f7c8123

Browse files
committed
Prefers reduced motion fix
1 parent e75a476 commit f7c8123

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

special-pages/pages/special-error/app/components/AdvancedInfo.jsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ export function AdvancedInfo() {
6363

6464
return (
6565
<div className={styles.wrapper}>
66-
<div className={styles.container} onAnimationEnd={trigger}>
67-
<AdvancedInfoHeading />
66+
<div className={styles.animationContainer} onAnimationEnd={trigger}>
67+
<div className={styles.container}>
68+
<AdvancedInfoHeading />
6869

69-
<AdvancedInfoContent />
70+
<AdvancedInfoContent />
7071

71-
<VisitSiteLink elemRef={ref} />
72+
<VisitSiteLink elemRef={ref} />
73+
</div>
7274
</div>
7375
</div>
7476
);

special-pages/pages/special-error/app/components/AdvancedInfo.module.css

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
.animationContainer {
2+
animation-duration: 300ms;
3+
animation-fill-mode: forwards;
4+
animation-name: appear;
5+
}
6+
17
.container {
28
align-items: flex-start;
39
display: flex;
410
flex-flow: column;
511
gap: var(--sp-4);
612
max-width: var(--ios-content-max-width);
13+
padding: var(--sp-6) var(--sp-10);
714
width: 100%;
8-
9-
animation-duration: 300ms;
10-
animation-fill-mode: forwards;
11-
animation-name: appear;
1215
}
1316

1417
.heading {
@@ -38,11 +41,9 @@
3841

3942
@keyframes appear {
4043
0% {
41-
padding: 0 var(--sp-10);
4244
max-height: 0;
4345
}
4446
100% {
45-
padding: var(--sp-6) var(--sp-10);
4647
max-height: calc(400 * var(--px-in-rem));
4748
}
4849
}

0 commit comments

Comments
 (0)