haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
10 stars 1 forks source link

Selector not respecting dark mode #1992

Closed kchar601 closed 1 month ago

kchar601 commented 2 months ago

Screenshot 2024-05-01 133308 image

This selector may be needed for dark mode override inside HAX but needs to be refactored to stop overriding instances where the toggle in HAX is not selected / has not been changed. (Scenarios where dark-mode class is not added to body but browser still in dark mode)

btopro commented 1 month ago

latest version this is now fixed. No forcible setting on 'light mode' only dark mode and it is defaulting to respecting the browser. Also cool in HAX that if you set dark mode platform level it automatically toggles it in hax to match :)