Skip to content

Conversation

sergiou87
Copy link
Member

xref. https://github.com/github/accessibility-audits/issues/8665

Description

This PR fixes the contrast ratio of the diff file warnings (like existence of hidden bidi characters or changes in EOL) to improve readability and accessibility.

More specifically, it changes the background color of the file warning from #{$yellow-200} to #{$yellow-100} and the text color from #{$yellow-800} to #{darken($yellow-700, 10%)} (which is the color used by the file-modified that can, sometimes, be seen right next to it).

Testing: one way of forcing this warning is this change:
image

Screenshots

image

Release notes

Notes: [Fixed] Increase contrast ratio of icon in diff file warnings

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

@sergiou87 sergiou87 merged commit 50a2f96 into development Aug 14, 2024
8 checks passed
@sergiou87 sergiou87 deleted the fix-bidi-warning-contrast branch August 14, 2024 13:26
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.

2 participants