Skip to content

Commit

Permalink
Update add-view-transitions.mdx (#9749)
Browse files Browse the repository at this point in the history
In section 6 "Check for theme earlier to prevent flashing in dark mode.", the demo code is missing format for 3 green lines

Co-authored-by: apatel369 <[email protected]>
Co-authored-by: sarah11918 <[email protected]>
Co-authored-by: yanthomasdev <[email protected]>
  • Loading branch information
4 people authored Oct 21, 2024
1 parent 46a0234 commit ab6705d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/tutorials/add-view-transitions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ With view transitions, some scripts may no longer re-run after page navigation l

Add this new script to the `<ThemeIcon />` component, in addition to the script that controls the theme toggle.

```astro title="src/components/ThemeIcon.astro" ins={3-9}
```astro title="src/components/ThemeIcon.astro" ins={3-12}
<script> ... </script>
<script is:inline>
Expand Down

0 comments on commit ab6705d

Please sign in to comment.