-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Fix color contrast in header and footer #1233
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a new PR.
So other parts of the page will be checked in other PRs? To help to review this PR can you add details about new contrast ratios as you did in the previous PR and one or more screenshots? |
That would be significant work. My previous pull request that changed only 7 lines stayed open for more than two years. I would be happy to work on that, but only if there is a clear commitment from the django project. |
@thibaudcolas hopefully you can find time to take a look. |
As @thibaudcolas highlited in the closed PR for all other text, we need to aim for 4.5:1 at a minimum. In your changes could you use the color variables (e.g. |
I intentionally didn't use the custom properties because they change with the theme, while my proposal here is to keep the same colors for both themes. I could restructure the code to use custom properties to the same effect if that is desired. |
As the last update in this conversation was on October 12, I would like to ask @xi if this pull request is still in progress, as I was interested in making a PR regarding light-mode accessibility. |
From my POV this is done. It is on the maintainers to decide whether they want this or not. If they decide they want to merge this I can fix any merge conflicts that have accumulated over time. But I don't really have the time to keep up with the main branch all the time. |
Makes sense, thanks for the response. |
This replaces #998. I decided to create a new pull request because the code had changed so much in the meantime that a simple rebase was not enough.
I noticed that the dark theme does not inverse colors in the header and footer, but improves their contrast. So my proposal is to use the better contrast version with both themes.
I did not check the contrast on other parts of the page.