> I've updated the code to account for the "Preferred Website Color Scheme."
> Theme settings should now be working correctly.
It's not going to work correctly because our *Auto* option follows
`prefers-color-scheme` which can change any time. If it does, you'll get for
example this:

Looks like cal-heatmap doesn't have a proper auto scheme ["as not all websites
support dark/light mode"](https://cal-heatmap.com/docs/options/theme).
You'd have to then setup a listener like
[this](https://github.com/openstreetmap/openstreetmap-website/pull/4777/commits/e35141b2d1c1733d9a15a01c08b796e4edda6b4e#diff-4fe14e869cf17b068e1bea009a55b094fed13f0cad85337cf4769f32b40a01b5R11-R13)
but without using Leaflet of course and redraw the heatmap.
Same is true for #5426 by the way.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2564655317
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5402/c2564655...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev