WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant