-
Notifications
You must be signed in to change notification settings - Fork 462
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
5 small a11y fixes #1380
5 small a11y fixes #1380
Conversation
I'm confused about this one. Are you referring to this? I don't see any contrast issues with that. It needs to be 3:1 and it is more than 4:1: (the text is Though your screenshot seems to say that --neutral-layer-4 is Edit: Wait, maybe those big color images are the changes for the subtext in 3, not the background in 4? |
18pt is 24.5px, which is larger than the text size, so the 4.5 ratio does apply!
|
Yes, so sorry! I meant for those images to be associated with # 3. |
Apologies, you're right. I glossed over the pt vs px distinction in the rule vs how we did sizing. That said, I don't think this is the right fix. The problem here is probably that I used |
Assuming this Is the header from the details panel on the Trace page (I think that's right), the background is |
We probably need to validate the whole console logs color scheme. It is taken from the Campbell color scheme used by default in Windows Terminal, so there was an assumption that they had taken foreground/background contrast into consideration with their defaults. But perhaps not. Edit: Not saying you should do that validation all as part of this PR. Just noting we probably need to do a pass on it (and/or figure out why that's allowed to not pass the contrast requirements in another app) at some point. |
I can't see the image you posted for some reason, but I'm assuming you're referring to my screenshot showing the color contrast checker. That's Accessibility Insights for Windows. The one for web does some good automated checks, but I use the one for windows to do more ad hoc testing. |
I just checked, we're still good everywhere foreground-subtext-rest is used. Reverted the neutral-layer-4 change, changed foreground-subtext-rest.
It appears that magenta ( |
Might want to change light/bright magenta also as that color ( |
# Conflicts: # src/Aspire.Dashboard/Components/ResourcesGridColumns/SourceColumnDisplay.razor
Good call. Updated bright magenta. @tlmii for re-review |
vs
neutral-layer-4 was just slightly too light in light theme and caused contrast issues between the application title (in logo header) and the background. It has been ever so slightly darkened, small enough that you really wouldn't even notice the change
fixes insufficient contrast in the red
fail
ansi log by lightening the color. we could eventually turn this into a badge, but it will require re-working the parser (fixes Console logs: colorization readability #1125)This PR fixes all of the current accessibility issues caught by automated checkers.
Microsoft Reviewers: Open in CodeFlow