-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
base: 6.0
Are you sure you want to change the base?
Conversation
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
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
0b63284
to
43ace48
Compare
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 :) |
43ace48
to
1b7a780
Compare
UtilsArray - Refactor out uses of deprecated CRM_Utils_Array::value
Import code consolidation, membership import
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? |
Add guard around CIVICRM_IFRAME constant
OptionGroup - Deprecate isDomainOptionGroup function
Decommission thresholdQuery, only call legacy hook from backward compat extension
[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…
6.0 to master
Remove "Cleanup Caches and Update Paths" page, leave a Clear Caches button and deprecate update/reset paths
Deprecate legacy parameters to Address::format()
Ensure modelProps has contributionID
[REF] Member/Pledge - Refactor out uses of deprecated CRM_Utils_Array::value
Merge 6.0 to master
Ensure contributionSummary is assigned to the template and check if it is empty
Update tplanner/when for type hints
Have added a PR to RL for this: #32079 |
Fix notices when rendering advanced search as contributions
dev/core#4923 CustomField - Don't index disabled fields
Extract part of function that is shared between old path & new
1b7a780
to
edf4b3b
Compare
Overview
Fix disappearing labels on the login box with Riverlea dark mode.
Before
Light mode ✔️
![image](https://private-user-images.githubusercontent.com/6513484/411024200-fe8f85c1-e40d-4166-bc01-41c703bd1678.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjg2MDcsIm5iZiI6MTczOTUyODMwNywicGF0aCI6Ii82NTEzNDg0LzQxMTAyNDIwMC1mZThmODVjMS1lNDBkLTQxNjYtYmMwMS00MWM3MDNiZDE2NzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTAxODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OThhZTRmZmRkNDBlMDhjZDRmNWEwYmJlODljMTliYTdiNGUxNGI2ZDMwZGI1MDlmMGUyNWUyNjY0YTJlYjVmNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.6t1P0h1LsLZ3LuXkwzOhQv2zfsW1V3ZJOmty2fx6oWk)
Dark mode labels disappear 🌑 😞
![image](https://private-user-images.githubusercontent.com/6513484/411036148-114dea01-ed61-49f9-8eee-e0554e4511fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjg2MDcsIm5iZiI6MTczOTUyODMwNywicGF0aCI6Ii82NTEzNDg0LzQxMTAzNjE0OC0xMTRkZWEwMS1lZDYxLTQ5ZjktOGVlZS1lMDU1NGU0NTExZmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTAxODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGZhZjNiYTYwMzFiNTIzOGY2YWU1MmEyZjM4NmUwODEwYTBlNWQ0NmYzNTg3Y2RkZGQzMzFmODVjNjgxY2I3YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xOlF_kHfHr1TMng-8TyrlGyYuFeSUDAKGG3d__X8BdU)
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](https://private-user-images.githubusercontent.com/6513484/411040310-06f1b1aa-6d30-4542-ab8f-5a49c580e856.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjg2MDcsIm5iZiI6MTczOTUyODMwNywicGF0aCI6Ii82NTEzNDg0LzQxMTA0MDMxMC0wNmYxYjFhYS02ZDMwLTQ1NDItYWI4Zi01YTQ5YzU4MGU4NTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTAxODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGRiNjBlZTY3YTA4NjAwNzZhZmM1MTZjYTEwOTUxYThjZmY0MTNiMDExZjZmNDQ4MjRlZWJiNjQ2ZWUwNWM0ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.1vbhUmB6cRFg6lPY6-Kffz8JXiHDtkoI1xRV4hY1GSw)
Dark mode good:
![image](https://private-user-images.githubusercontent.com/6513484/411040124-72694857-a7ee-485e-987d-8473d17b5ac2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjg2MDcsIm5iZiI6MTczOTUyODMwNywicGF0aCI6Ii82NTEzNDg0LzQxMTA0MDEyNC03MjY5NDg1Ny1hN2VlLTQ4NWUtOTg3ZC04NDczZDE3YjVhYzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTAxODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODhlZDI2MDBiMjcxMzIwZDdmZjcwZjM3NmE3NjljZTU5MTQ2MWU0ODBmNzZlMWI2Y2U2NWQ1MzBhZGFlOTJkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QTRm1Y8P2wBqh1npXfQcs2NBDecWC2Hmy-eSxBZsheU)
(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