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
Offline warning message is hard to read in dark mode #40193
Offline warning message is hard to read in dark mode #40193
Comments
WCAG does say the contrast is only 1.41: https://contrastchecker.com/?c=f5f6f7&b=add8e6 |
The notification background is hardcoded and the font color is being handled based on theme. We have let bootstrap handle the styling for the notifications since they handle the font color and the background and look well on both themes. So doing the followings should do the trick. Add
and remove the
|
I think the best way is to implement luma-corrected calculations. I am saying this because this would allow the font color to switch based on the contrast of the notification background contrast from Source: https://css-tricks.com/switch-font-color-for-different-backgrounds-with-css/ |
@ahmadabdolsaheb can I work on this? I might need help. please guide me. |
@rammazzoti2000, that is a cool trick. Thanks for sharing the link. Since are planning to move off of bootstrap, we should consider luma-corrected calculations in how we implement our dark/light themes during the rewrite process. Meanwhile, I think we could move forward with making the simple change that resolves this issue. @redshark25, sure. Make sure you read this: https://contribute.freecodecamp.org/#/index?id=our-open-source-codebase |
To Reproduce
Steps to reproduce the behavior:
Actual behavior
The offline warning message shows up, but the text is quite hard to read.
Screenshots
The text was updated successfully, but these errors were encountered: