Skip to content
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

Standalone login box coloring - fix the text color to black to fix dark mode #31991

Open
wants to merge 144 commits into
base: 6.0
Choose a base branch
from

Conversation

ufundo
Copy link
Contributor

@ufundo ufundo commented Feb 7, 2025

Overview

Fix disappearing labels on the login box with Riverlea dark mode.

Before

Light mode ✔️
image

Dark mode labels disappear 🌑 😞
image

After

Fix the text color in that box to black.

Light mode (label text is very slightly darker than the default --crm-c-text in this stream):
image

Dark mode good:
image

(all screenshots using Hackney Brook. Similar story on Minetta and Walbrook. Thames overrides to a dark background color in dark mode, this PR adds forcing text back to white at the same time)

Comments

I don't know how I feel about fixing on specific colors here, but a) it is simplest fix I can think of; b) given we have the Civi logo in this box, which has fixed colors, then that sort of dictates the background color; c) if we are setting a background color, I think we should set a text color that goes with it; d) if themes want to override they can (as Thames is doing)

There is a slight issue in the screenshot above that the change leaks into the alert box text. That seems to be because of a separate issue with an undefined variable specifically in Hackney Brook, I will make a separate PR for that.

cc @vingle @artfulrobot

eileenmcnaughton and others added 9 commits February 6, 2025 10:31
Fix dev/core#5722
Use smarty variable which is a boolean instead of the token which is localized
Now that the last 2 domain-specific option groups have been dealt with:

- civicrm#31909
- civicrm#31924

... we can stop using this godawful is_domain column for good.
The OptionValue table is complex enough without it!
…value

This does the same thing as before, in one much simpler line.
dev/core#5722 AdminUI - Fix Manage ACLs mode column
Copy link

civibot bot commented Feb 7, 2025

🤖 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 Feb 7, 2025
@ufundo ufundo force-pushed the standalone-login-box-color-fix branch from 0b63284 to 43ace48 Compare February 7, 2025 18:23
@ufundo
Copy link
Contributor Author

ufundo commented Feb 7, 2025

Noticed the "Forgot password" link is also struggling a bit in dark mode. I've fixed it to grey similarly now.

edit: amended again to slightly darker grey for AAA contrast rating :)

@ufundo ufundo force-pushed the standalone-login-box-color-fix branch from 43ace48 to 1b7a780 Compare February 7, 2025 18:26
@ufundo ufundo marked this pull request as ready for review February 7, 2025 18:35
@vingle
Copy link
Contributor

vingle commented Feb 7, 2025

Would some of these problems be solved if we had a dark-mode version of the Civi logo? ie white text and white border around the triangles? Then the login box can have a dark bg and the theme then can just do its stuff?

ufundo and others added 22 commits February 11, 2025 22:07
[REF] Use tokenProcessor to render display name
dev/financial#230 - don't send email receipt when changing payment method on a contribution
dev/core#5578 Adding Recurring tokens to Contribution/Membership toke…
Remove "Cleanup Caches and Update Paths" page, leave a Clear Caches button and deprecate update/reset paths
Deprecate legacy parameters to Address::format()
[REF] Member/Pledge - Refactor out uses of deprecated CRM_Utils_Array::value
Ensure contributionSummary is assigned to the template and
check if it is empty
Update tplanner/when for type hints
@vingle
Copy link
Contributor

vingle commented Feb 13, 2025

Have added a PR to RL for this: #32079

@ufundo ufundo force-pushed the standalone-login-box-color-fix branch from 1b7a780 to edf4b3b Compare February 14, 2025 09:58
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.