The new, darker blue in links #51233
Replies: 10 comments 9 replies
-
(Moved from #51251) Yes, the default color of links ( to the older one: I think at least having the option to switch back to the old color would be great for accessibility. |
Beta Was this translation helpful? Give feedback.
-
For anyone else bothered by this, here's a Tapermonkey script that reverts some of the colors:
Does anyone know the previous hex colors of the other UI color elements which changed? It seems like the normal grey text color has also changed. |
Beta Was this translation helpful? Give feedback.
-
Yes, I agree that the link color in the dark theme is harder to read. But we're somewhat limited in our options. 😞 The WCAG 2.0 accessibility rules state that the link color needs a contrast ratio of Some options:
Has anyone come across a great solution for blue links on a dark background that is fully accessible? |
Beta Was this translation helpful? Give feedback.
-
Another option might be to switch to the
Since the |
Beta Was this translation helpful? Give feedback.
-
The new dark mode appears in some ways worse than the old dark mode, I'm still only able to use the high contrast dark mode. This blog post: 2023-03-28-light-and-dark-theme claims an improvement but it appears that it actually is a de-enhancement, and an accessibility fail. Notice that I made the URL bold in an attempt to make it more readable. IMPORTANTWCAG 2 contrast math cannot calculate for dark modeIt's incapable of that and this is well known and well documented. WCAG 2 contrast was put forth circa 2007, a time when sites had light backgrounds and dark text, and dark mode was rare. WCAG 2 contrast was never empirically tested, was not peer-reviewed, and essentially cherry picks references from some obsolete standards and an informal conference paper. It was objected to by IBM and other stakeholders but was pushed forward anyway. There are perceptually uniform methods that can be used today for dark mode that are actually accessible. LAWThere is a small faction of individuals who are claiming "you have to do WCAG 2 because it's law", but that's not exactly true, and there are legal exceptions depending on jurisdiction, particularly for alternate facilitation and for using a different method that's a demonstrated improvement. Also, WCAG2 only requires a single version to comply (or if using an automated mode like a media query then the default modes for each media query that is not directly user settable), all other, alternate versions can be using any method desirable. And what is desirable is actual accessibility. Claims that one should be using WCAG 2 for dark mode are misinformed.Actual accessibility is what is legal, and actual accessibility should be the goal, not enslavement to arbitrary numbers that have no empirical evidence nor peer review to support them. For information regarding the current state of the art, here is a peer reviewed article on the topic: Realities And Myths Of Color And Contrast the article describes many of the misunderstandings on this topic and presents useful guidance for moving forward. Thank you for reading, Andy Andrew Somers |
Beta Was this translation helpful? Give feedback.
-
I am a partially visually impaired coder and use firefox to override the text and link colors. I am not sure if some update has broken this but this is a nice way to allow users to pick their own colors. |
Beta Was this translation helpful? Give feedback.
-
Hello @GoldenretriverYT - thank you for providing feedback about the link color in dark mode! As @simurai pointed out in their comment the blue link color meets current WCAG color contrast ratio recommendations, even if as @Myndex highlights in their comment there are potentially issues with the way we currently measure color contrast. We can file this issue as a feature request with the Accessibility team. While we can’t guarantee immediate action on every piece of feedback, rest assured that we are attentive to your suggestions and always striving to enhance the GitHub experience for all of our users (cc @queenofcorgis) |
Beta Was this translation helpful? Give feedback.
-
Hi @simurai
WCAG 2.0 doesn't actually say that in the normative part of the SC (1.4.1). What 1.4.1 states is that information must not rely solely on color (hue/chroma). The understanding docs may indicate 3:1 as a way to pass 1.4.1, but there is no empirical or peer-reviewed support for that—especially as that is relying on the WCAG2 contrast math, which does not follow human perception in a useful way. Dark Secrets of WCAG 2WCAG 2.0 contrast math breaks down to unusable values when backgrounds are darker than about The science of vision is well established; saturated blues and reds should be the darkest of a color pair. For an sRGB display, blue makes up only 7% of luminance, red 22%, and green 71%. (In P3 red is 24%, green 69%). That's for standard human vision. For some color insensitive types, such as protanopia, the sRGB red makes up a mere 10% of total luminance. This clearly presents issues in dark mode, and WCAG2 does not address these issues. All of this is academic—and yet ignored by WCAG 2WCAG 2 does not promote actual accessibility. If there is some desire to "meet" WCAG_2, it should be only for a light mode scheme. And then, you only need one scheme for WCAG2 compliance. All the other schemes can instead support actual accessibility. GitHub seemed to be on a good path to actual accessibility a few years ago, but this last year, visual accessibility has dropped. What happened? I am visually impaired, and have a tough time using this site. All of the color schemes here are non-accessible to me, except partly for "dark mode high contrast", which itself has issues I have to live with as the "least bad" choice. You have a lot of different schemes, but what is the basis for them? Years ago we demonstrated that WCAG 2 contrast methods can be harmful to readability. This is not to diminish the other aspects of WCAG, but when it comes to visual accessibility, WCAG_2 is far from authoritative. Unfortunately, standards organizations move at a glacial pace so future corrections are on an indefinite timeline. But WCAG_2 is not the only standard available for guidance. Thank you for reading, Andrew Somers |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
I noticed that the blue in links got darker. This reduces the contrast between the background and foreground in the dark mode. Whilst personally it only looks bad imo, it definitely reduces accessibility.
Beta Was this translation helpful? Give feedback.
All reactions