Skip to content

Commit bc6b37d

Browse files
authored
Merge pull request #7713 from GrandSchtroumpf/fix-view-transition
fix(view-transition): rename qwik-router-spa to qwik-navigation
2 parents bde431a + 2bea653 commit bc6b37d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/angry-boats-lose.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik.dev/router': patch
3+
---
4+
5+
Bugfix - rename the view transition type in CSS to prevent default view transition on SPA navigation

packages/docs/src/routes/docs/cookbook/view-transition/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default component$(() => {
165165
});
166166
```
167167

168-
When listening on the `qviewTransition` we know that
168+
When listening on the `qviewtransition` we know that
169169

170170
> **Note**: For it to work correctly, we need to **remove the default view transition** animation else it happens on top of the `.animate()`. I'm using `view-transition-class` which is only working with Chrome right now.
171171

packages/qwik-router/src/runtime/src/qwik-router-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const QwikRouterProvider = component$<QwikRouterProps>((props) => {
130130
useStyles$(`
131131
@layer qwik {
132132
@supports selector(html:active-view-transition-type(type)) {
133-
html:active-view-transition-type(qwik-router-spa) {
133+
html:active-view-transition-type(qwik-navigation) {
134134
:root{view-transition-name:none}
135135
}
136136
}

0 commit comments

Comments
 (0)