-
Notifications
You must be signed in to change notification settings - Fork 987
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
base: release/9.0
Are you sure you want to change the base?
Conversation
…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
There was a problem hiding this 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
src/System.Windows.Forms/src/System/Windows/Forms/Printing/PrintPreviewControl.cs
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. |
@Epica3055 , @Tanya-Solyanik Is this pending testing or have we sent tactics mail? |
@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. |
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
Risk
low, these colors are not under user control, they wouldn't interfere with user changes.
Microsoft Reviewers: Open in CodeFlow