Skip to content
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 environment card text colors for high contrast users #3808

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

bbonaby
Copy link
Contributor

@bbonaby bbonaby commented Sep 9, 2024

Summary of the pull request

Currently there a couple places on the environment pages where we use the TextFillColorTertiaryBrush Win UI color brush. However, this brush does not provide a good enough contrast ratio when used in high contrast mode. This is an accessibility issue. Looking at the Win UI gallery guidance, we should actually be using the TextFillColorPrimaryBrush for text that is at rest (See Win UI gallery apps color section for text). This PR updates these usages of TextFillColorTertiaryBrush to TextFillColorPrimaryBrush.

Before:
Before - setup environments page
Before - setup environments page
Before - environments page
Before - environments page

After:
After - setup environments page
After - environment setup page

After changes - environments page
After changes - environments page

References and relevant issues

Accessibility internal bugs:
https://task.ms/49714932
https://task.ms/50453683

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

@@ -145,13 +145,13 @@
VerticalAlignment="Center">
<TextBlock
Text="{x:Bind DisplayName, Mode=OneWay}"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Margin=" 0 0 0 0"
Copy link
Contributor Author

@bbonaby bbonaby Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was originally a secondary color but I'm changing it to be primary like the textblock below it. They both should have been the same color.

This line represents the "Microsoft Dev Box" text in the image below:

image

@krschau krschau added this to the Dev Home v0.18 milestone Sep 9, 2024
Copy link
Collaborator

@krschau krschau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you task.ms link to the ADO issue?

@bbonaby
Copy link
Contributor Author

bbonaby commented Sep 9, 2024

Can you task.ms link to the ADO issue?

I created an issue for them here: #3809 . Will link the PR to that issue

@krschau krschau removed this from the Dev Home v0.18 milestone Sep 9, 2024
@bbonaby bbonaby added the Needs-Second Pull request that needs another approval label Sep 10, 2024
@bbonaby bbonaby merged commit c938168 into main Sep 10, 2024
4 checks passed
@krschau krschau removed the Needs-Second Pull request that needs another approval label Sep 10, 2024
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.

Environment card status and header text color do not have a good contrast ratio for accessible users
3 participants