Skip to content

RiverLea Thames Dark Mode / Extensions colour fix - #32381

Merged
artfulrobot merged 1 commit into
civicrm:6.0from
vingle:patch-1
Mar 17, 2025
Merged

RiverLea Thames Dark Mode / Extensions colour fix#32381
artfulrobot merged 1 commit into
civicrm:6.0from
vingle:patch-1

Conversation

@vingle

@vingle vingle commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

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

image

After

image

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-addon in _bootsstrap.css line 1808
  • .crm-container .panel-success > .panel-heading in _components.css line 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.

@civibot

civibot Bot commented Mar 14, 2025

Copy link
Copy Markdown

🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷

Introduction for new contributors...
  • If this is your first PR, an admin will greenlight automated testing with the command ok to test or add to whitelist.
  • A series of tests will automatically run. You can see the results at the bottom of this page (if there are any problems, it will include a link to see what went wrong).
  • A demo site will be built where anyone can try out a version of CiviCRM that includes your changes.
  • If this process needs to be repeated, an admin will issue the command test this please to rerun tests and build a new demo site.
  • Before this PR can be merged, it needs to be reviewed. Please keep in mind that reviewers are volunteers, and their response time can vary from a few hours to a few weeks depending on their availability and their knowledge of this particular part of CiviCRM.
  • A great way to speed up this process is to "trade reviews" with someone - find an open PR that you feel able to review, and leave a comment like "I'm reviewing this now, could you please review mine?" (include a link to yours). You don't have to wait for a response to get started (and you don't have to stop at one!) the more you review, the faster this process goes for everyone 😄
  • To ensure that you are credited properly in the final release notes, please add yourself to contributor-key.yml
  • For more information about contributing, see CONTRIBUTING.md.
Quick links for reviewers...

➡️ Online demo of this PR 🔗

@civibot civibot Bot added the 6.0 label Mar 14, 2025
@colemanw

Copy link
Copy Markdown
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).

@artfulrobot
artfulrobot merged commit 1edde12 into civicrm:6.0 Mar 17, 2025
@artfulrobot

Copy link
Copy Markdown
Contributor

Thanks both.

@vingle
vingle deleted the patch-1 branch March 17, 2025 17:38
@vingle

vingle commented Mar 17, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @colemanw - have made a new PR to 6.1 here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants