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

Backport pr 12368 and 12448 #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 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.

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 21 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.

---- 🚨 Try these New Features:

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📭 waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants