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

[release/9.0] Informational text in PrintPreviewControl has low contrast in basic and HightContrast themes. #12478

Open
wants to merge 2 commits into
base: release/9.0
Choose a base branch
from

Conversation

Epica3055
Copy link
Member

@Epica3055 Epica3055 commented Nov 14, 2024

Backport of #12368 and #12448 to release/9.0
BUG: #12365, #12441

Bug Description

When PrintPreviewControl has no document to show, it shows a text message to that effect. This message has low color contrast ratio, making it hard to read. Text to background ratio is 2.3:1 or 3.9:1 in high contrast mode instead of the required 4.5:1 (https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html)

Customer Impact

Accessibility requirement violation.

Regression?

no

Testing done

  • manual, using Accessibility insights. Testing covered Dark mode and all HC modes on both Windows11 and windows10
  • test team ran migrated automation cases

Risk

low, these colors are not under user control, they wouldn't interfere with user changes.

Microsoft Reviewers: Open in CodeFlow

…any pages" in printPreviewControl has low color contrast (dotnet#12368)

* fix dotnet#12365  [Accessibility] The text "Document does not contain any pages" in printPreviewControl has low color contrast

* use SystemColor instead of hardcode
…4.5:1 for the text "Document does not contain any pages" in printPreviewControl (dotnet#12448)

* fix 12441 [Accessibility] HC themes: The color contrast is less than 4.5:1 for the text "Document does not contain any pages" in printPreviewControl

* fix unit tests

* fix comments
@Epica3055 Epica3055 requested a review from a team as a code owner November 14, 2024 07:37
@Epica3055 Epica3055 changed the title Backport pr 12368and12448 Backport pr 12368 and 12448 Nov 14, 2024
Copy link
Member

@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

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

If CI errors are resolved, LGTM

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.

Project coverage is 74.82903%. Comparing base (2d1768d) to head (d07dd28).
Report is 23 commits behind head on release/9.0.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           release/9.0      #12478         +/-   ##
=====================================================
+ Coverage     74.82815%   74.82903%   +0.00088%     
=====================================================
  Files             3022        3022                 
  Lines           630184      630210         +26     
  Branches         46788       46793          +5     
=====================================================
+ Hits            471555      471580         +25     
+ Misses          155247      155246          -1     
- Partials          3382        3384          +2     
Flag Coverage Δ
Debug 74.82903% <72.72727%> (+0.00088%) ⬆️
integration 18.02566% <0.00000%> (-0.00769%) ⬇️
production 47.86001% <14.28571%> (+0.00350%) ⬆️
test 97.00795% <100.00000%> (+0.00004%) ⬆️
unit 44.89124% <14.28571%> (+0.00547%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@lonitra
Copy link
Member

lonitra commented Nov 22, 2024

@Epica3055 , @Tanya-Solyanik Is this pending testing or have we sent tactics mail?

@lonitra lonitra added the 📭 waiting-author-feedback The team requires more information from the author label Nov 22, 2024
@Epica3055
Copy link
Member Author

@lonitra

This pr contains two prs #12368 and #12448. Each got tested.

We haven't sent the email.

@dotnet-policy-service dotnet-policy-service bot added untriaged The team needs to look at this issue in the next triage and removed 📭 waiting-author-feedback The team requires more information from the author labels Nov 25, 2024
@Tanya-Solyanik Tanya-Solyanik added Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria and removed untriaged The team needs to look at this issue in the next triage labels Nov 27, 2024
@Tanya-Solyanik
Copy link
Member

Tanya-Solyanik commented Nov 27, 2024

@Epica3055 - had this PR been tested against the NET9 binaries? Once it is signed off, please send email to tactics using the PR description as the template, edit it as needed.

@Tanya-Solyanik Tanya-Solyanik changed the title Backport pr 12368 and 12448 [release/9.0]Informational test in PrintPreviewControl has low contrast in basic and HightContrast themes. Nov 27, 2024
@Tanya-Solyanik Tanya-Solyanik changed the title [release/9.0]Informational test in PrintPreviewControl has low contrast in basic and HightContrast themes. [release/9.0] Informational text in PrintPreviewControl has low contrast in basic and HightContrast themes. Nov 27, 2024
@Tanya-Solyanik Tanya-Solyanik added the 🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants