Skip to content

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

Merged
lonitra merged 2 commits into
dotnet:release/9.0from
Epica3055:backportPr-12368and12448
Dec 2, 2024
Merged

lonitra merged 2 commits into
dotnet:release/9.0from
Epica3055:backportPr-12368and12448

Conversation

@Epica3055

@Epica3055 Epica3055 commented Nov 14, 2024 •

Copy link
Copy Markdown
Member

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

@ricardobossan ricardobossan left a comment

Copy link
Copy Markdown
Member

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

@codecov

codecov Bot commented Nov 15, 2024 •

Copy link
Copy Markdown

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 27 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

lonitra commented Nov 22, 2024 •

Copy link
Copy Markdown
Member

@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
Copy Markdown
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

Tanya-Solyanik commented Nov 27, 2024 •

Copy link
Copy Markdown
Contributor

@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
@lonitra lonitra added servicing-approved .NET Shiproom approved the PR for merge and removed servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria 🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) labels Dec 2, 2024
@lonitra
lonitra merged commit df56bee into dotnet:release/9.0 Dec 2, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

servicing-approved .NET Shiproom approved the PR for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants