From 8e35a4e6afc189ad52b5040b3db23d2d230e0272 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 28 Oct 2025 13:15:28 -0400 Subject: [PATCH] updated post to reflect prior change --- posts/platonically-ideal-light-dark-toggle.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/posts/platonically-ideal-light-dark-toggle.md b/posts/platonically-ideal-light-dark-toggle.md index 1bdac1b..05741b9 100644 --- a/posts/platonically-ideal-light-dark-toggle.md +++ b/posts/platonically-ideal-light-dark-toggle.md @@ -132,6 +132,10 @@ Default view transition via Makes this technique slightly better visually and so I added it to the demo. Although not sure if/how I'd add it to a real world application which doesn't have a pretty robust system for view transition setup. +### Update 2: Made js button also use view transitions + +via: [document.startViewTransition](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) + ## Why Don't I Have a Light/Dark Toggle Button on This Blog? Because doing it correctly is more effort than it's worth, I don't want to do it incorrectly, and for most people their system preference will already match what they want.