spring-io / spring-asciidoctor-backends

A backend for Asciidoctor used to produce Spring styled HTML
Apache License 2.0
80 stars 16 forks source link

Dark/Light Mode Toggle + Restrictive Browser Permissions #50

Closed mrg closed 3 years ago

mrg commented 3 years ago

The dark/light mode toggle doesn't toggle between dark/light mode (although the toggle does animate) when you have more restrictive browser settings/permissions.

In my day-to-day browser, I whitelist which sites can write to local storage (similar for 3rd party cookies) and this seems to be the cause. When I try the site in my application-testing browser, which allows local storage, the dark/light mode toggle works and I can see "dark" and "light" values being written under the "theme" key.