RiverLea Thames Dark Mode / Extensions colour fix - #32381
Merged
Conversation
|
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
Member
|
@artfulrobot is this good to merge in your opinion? @vingle since stable branches can't be merged into rc/beta branches, a copy of this PR will need to be opened for 6.1 (if the bug exists there). |
Contributor
|
Thanks both. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This fixes a regression caused by #31994. I tested that PR and made a bunch of changes to regressions in #32209, but hadn't tested Extensions layout in Thames dark-mode, so am adding this. @artfulrobot feel free to change/resubmit your own, trying to be helpful here.
I'm going for the simplest fix - change bg to be dark, using a shade of green used elsewhere in Thames/DarkMode.
Before
After
Technical Details
The important question for a reviewer: does this new CSS variable create other regressions in the theme? The answer is a little complex: there are two instances in RiverLea core which are direct ports of Bootstrap css but with RL variables, where this would create a contrast clash between FG and BG colours:
#bootstrap-theme .has-success .input-group-addonin_bootsstrap.cssline 1808.crm-container .panel-success > .panel-headingin_components.cssline 278.So because these aren't used in Civi core as far as I am aware I think this is safe, especially as this only impacts dark mode for one stream. However, because some extensions might use those classes now or in the future - these should be adjusted BUT the fix a) would need a bit of testing across all streams as it's a change to RiverLea core; and b) overlaps with a structural change @ufundo and I have discussed about being more rigorous with bg and foreground text colours existing in pairs, so it becomes very hard to end up with these kinds of contrast ratio clashes (which will only increase as more streams + customisations emerge).
So I would recommend merging this as it fixes a common screen that's currently not readable, and I will try to tackle the two potential colour ratio clashes in a future PR perhaps with the wider bg/fg contrast ratio pair cleanup.