Closed AVGVSTVS96 closed 6 months ago
Latest commit: |
ca33b29
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2e4ba8bb.astrosite-aid.pages.dev |
Branch Preview URL: | https://disabletransition-bas-90.astrosite-aid.pages.dev |
Open the branch in Web Editor • VS Code • Insiders
Open Preview
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @AVGVSTVS96 and the rest of your teammates on Graphite
What changed?
A
disableTransitions
function has been added inModeToggle.tsx
andThemeToggle.astro
files to temporarily disable CSS transitions whenever the theme is switched, providing a smoother experience when switching between dark and light modes.How to test?
To test, you can switch between light and dark modes in the user interface and observe that transitions on elements don't appear during mode changes, but they do appear when they're intended to, i.e. when a button is hovered.
Update scripts, add
disableTransitions()
to both mode toggle component implementations -ModeToggle.astro
andThemeToggle.tsx
This prevents the transition from being visible when toggling light and dark mode.