Skip to content

Fix: Increase logo visibility in contrast themes / high-contrast mode #463#516

Open
GajulaSamatha wants to merge 1 commit intowagtail:mainfrom
GajulaSamatha:main
Open

Fix: Increase logo visibility in contrast themes / high-contrast mode #463#516
GajulaSamatha wants to merge 1 commit intowagtail:mainfrom
GajulaSamatha:main

Conversation

@GajulaSamatha
Copy link

@GajulaSamatha GajulaSamatha commented Apr 9, 2025

This is my first PR, so if I made any mistakes, please excuse me and kindly guide me in the right direction. I hope to learn something new through this!

The issue is #463

To solve this issue, I followed @thibaudcolas sir's suggestion of adding" forced-color-adjust: none". It successfully worked when switching to system's high-contrast mode from website's dark mode.

However, while testing in light mode, there was no specific background color applied to the logo, which made it easy for contrast themes to override it. So, I explicitly added background-color: white here (these styles are applied in light mode):

image

these are the styles applying in the light mode of the website.

During testing, I also observed that PNG format logos are better in such cases, since their background color can be styled easily. For other formats, the appearance may not be ideal. You can see the difference here:

image

The first logo is a PNG.
The second one is not, and does not blend well.

I tested this in Chrome, Microsoft Edge and Fire Fox browsers.

@vossisboss vossisboss added the needs-testing For PRs that haven't been tested yet label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-testing For PRs that haven't been tested yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants