Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hugovk
Copy link
Contributor

@hugovk hugovk commented Jan 25, 2023

Before

The red #define _Py_SHARED_SHIFT 2 shown here, with class="cp" is #cd2828:

image

Has a contrast ratio of 3.04 which doesn't meet the WCAG AA minimum of 4.5:

image

image

And is flagged by Lighthouse:

image

After

Using Google's suggestion of #ff3a3a increases it to 4.59:

image

image

(For comparison, the AAA suggestion of #ff8888 is a bit pale, so let's go for AA.)

AAA

image

@birkenfeld
Copy link
Member

Works for me. Thanks!

@birkenfeld birkenfeld merged commit 4d8bca5 into pygments:master Jan 29, 2023
@hugovk hugovk deleted the fix-contrast branch January 29, 2023 17:27
@Anteru Anteru added this to the 2.15.0 milestone Mar 25, 2023
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.

3 participants