From ab6705d39fca58fc5d722cae9aaa6e67882f0d41 Mon Sep 17 00:00:00 2001 From: Foxeye-Rinx Date: Mon, 21 Oct 2024 23:46:45 +0700 Subject: [PATCH] Update add-view-transitions.mdx (#9749) 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 <33442948+apatel369@users.noreply.github.com> Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com> Co-authored-by: yanthomasdev <61414485+yanthomasdev@users.noreply.github.com> --- src/content/docs/en/tutorials/add-view-transitions.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/tutorials/add-view-transitions.mdx b/src/content/docs/en/tutorials/add-view-transitions.mdx index 75415e1bd19cd..d2cf21f7bf997 100644 --- a/src/content/docs/en/tutorials/add-view-transitions.mdx +++ b/src/content/docs/en/tutorials/add-view-transitions.mdx @@ -257,7 +257,7 @@ With view transitions, some scripts may no longer re-run after page navigation l Add this new script to the `` 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}