Skip to content

Conversation

@jebriede
Copy link
Contributor

@jebriede jebriede commented Jan 22, 2021

Change the background and foreground colors in the PMUI to increase contrast ratio in Light theme and use the correct colors for doc well UI. In addition, the background and foreground of the PMUI was using colors from the BrandedUI category not intended for this type of UI and also resulted in a gray background in the Light theme that resembled the color of the VS toolbar. The light theme is intended to have a center stage area that is white so the grayish background was violating the design idea for the light theme which this PR also fixes.

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/714
Regression: No

  • Last working version: N/A
  • How are we preventing it in future: N/A

Fix

Details: Updated the mapping of color tokens to use the CommonDocument Page background and foreground for the PMUI which are the colors that should be used for doc well UI. This has the desirable effect of making the background White (instead of grayish) in the Light theme and slightly darker in the Dark theme.

Testing/Validation

Tests Added: Yes/No No
Reason for not adding tests: UI color changes
Validation: Tested in Blue, Light, and Dark themes visually and with Accessibility Insights to ensure contrast ratio tests passed.

…ontrast ratio in Light theme and use the correct colors for doc well UI
Copy link
Contributor

@donnie-msft donnie-msft left a comment

Choose a reason for hiding this comment

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

I'm not convinced we should change this bgcolor.
Our window matches the VS bg in Light theme. Changing it to white is a deviation.

image

I also played with AccessibilityInsights and believe the problem isn't the Bgcolor, but is the Blue hover-color font on our tab. Can we tweak that color just a bit to resolve this bug?
image

Copy link
Contributor

@donnie-msft donnie-msft left a comment

Choose a reason for hiding this comment

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

Learned some history with theming: PMUI generally should have had a white background all along, so it's not really deviating.
We should call out that this PR is correcting a separate bug as well where the main window was using a gray toolbar color incorrectly.

@jebriede jebriede merged commit c21ea53 into dev Jan 23, 2021
@jebriede jebriede deleted the dev-jebriede-PMUIFixTabContrast branch January 23, 2021 05:21
jebriede added a commit that referenced this pull request Feb 17, 2021
…crease contrast ratio in Light theme and use the correct colors for doc well UI (#3858)"

This reverts commit c21ea53.
jebriede added a commit that referenced this pull request Feb 18, 2021
…crease contrast ratio in Light theme and use the correct colors for doc well UI (#3858)" (#3906)

This reverts commit c21ea53.
jebriede added a commit that referenced this pull request Feb 18, 2021
…crease contrast ratio in Light theme and use the correct colors for doc well UI (#3858)" (#3906)

This reverts commit c21ea53.
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.

4 participants