Skip to content

Commit d811172

Browse files
committed
docs: fix/remove website and docs examples modal modal.showing animations
1 parent c037297 commit d811172

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

apps/website/src/components/header/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export default component$(({ showVersion = false }: HeaderProps) => {
3535
background: rgba(0,0,0,0.02);
3636
}
3737
38-
.sidebar-mobile.modal-showing {
38+
.sidebar-mobile {
3939
animation: sidebarOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
4040
}
4141
42-
.sidebar-mobile.modal-showing::backdrop {
42+
.sidebar-mobile::backdrop {
4343
animation: sidebarFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
4444
}
4545

apps/website/src/components/make-it-yours/make-it-yours.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ export default component$(() => {
1111
useStyles$(`
1212
.make-it-yours::backdrop {
1313
background: rgba(0,0,0,0.02);
14-
1514
}
1615
17-
.make-it-yours.modal-showing {
16+
.make-it-yours {
1817
animation: sheetOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1918
}
2019
21-
.make-it-yours.modal-showing::backdrop {
20+
.make-it-yours::backdrop {
2221
animation: sheetFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
2322
}
2423

apps/website/src/routes/docs/headless/modal/examples/bottom-sheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export default component$(() => {
88
background: hsla(0, 0%, 0%, 0.5);
99
}
1010
11-
.bottom-sheet.modal-showing {
11+
.bottom-sheet {
1212
animation: bottomSheetOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1313
}
1414
15-
.bottom-sheet.modal-showing::backdrop {
15+
.bottom-sheet::backdrop {
1616
animation: sheetFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1717
}
1818

apps/website/src/routes/docs/headless/modal/examples/sheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export default component$(() => {
88
background: hsla(0, 0%, 0%, 0.5);
99
}
1010
11-
.sheet.modal-showing {
11+
.sheet {
1212
animation: sheetOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1313
}
1414
15-
.sheet.modal-showing::backdrop {
15+
.sheet::backdrop {
1616
animation: sheetFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1717
}
1818

apps/website/src/routes/docs/headless/modal/examples/transition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default component$(() => {
1414
transition: opacity 300ms ease;
1515
}
1616
17-
.my-transition.modal-showing, .my-transition.modal-showing::backdrop {
17+
.my-transition, .my-transition::backdrop {
1818
opacity: 1;
1919
}
2020

apps/website/src/routes/docs/headless/modal/snippets/animation.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
background: hsla(0, 0%, 0%, 0.5);
33
}
44

5-
.my-animation.modal-showing {
5+
.my-animation {
66
animation: modalOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
77
}
88

9-
.my-animation.modal-showing::backdrop {
9+
.my-animation::backdrop {
1010
animation: modalFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1111
}
1212

0 commit comments

Comments
 (0)