-
-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Riverlea - set color-scheme in DynamicCss so system elements respect dark_mode setting #31619
base: master
Are you sure you want to change the base?
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
260cc37
to
edaa8b5
Compare
Thanks @ufundo looks a v useful PR, a yes from me. Just to check, are you saying that |
Just in Thames in my experience, because the Thames vars include that unconditional I think it could be a bit browser dependent. I would hope declaring |
Yes - and it would make a good explanation for why that's happening in Thames. If, say, the BG colour of a checkbox isn't set in Thames it takes the next definition, which is the dark-mode browser's colour. |
retest this please |
Overview
Set the CSS color-scheme property to match your dark mode setting preference. This means system elements (like checkboxes) will respect this setting.
Note: Thames is currently setting
light dark
unconditionally. This means even if you set the Riverlea mode to "Always light", there are some leaks if your OS is set to dark mode.Before
Drupal Garland, Riverlea Dark Mode = Always Light, OS Dark Mode ON
Note titles and checkbox backgrounds:
After
Same configuration as above:
Riverlea dark mode = Always Dark, OS Dark Mode = OFF or ON:
Note checkbox backgrounds are dark (obviously setting Always Dark is a bad idea when you are using Garland)
Other permutations work as expected.
cc @vingle @artfulrobot