[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Anton Khorev
notifications at github.com
Sun Dec 29 08:45:43 UTC 2024
> 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/c2564655317 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241229/550827bd/attachment.htm>
More information about the rails-dev
mailing list