Skip to content

Improve contrast between optional argument text and background#187

Open
dstansby wants to merge 1 commit intomatplotlib:mainfrom
dstansby:improve-text-contrast
Open

Improve contrast between optional argument text and background#187
dstansby wants to merge 1 commit intomatplotlib:mainfrom
dstansby:improve-text-contrast

Conversation

@dstansby
Copy link
Copy Markdown
Member

Fixes #138 (I think). To choose the colour I used https://webaim.org/resources/contrastchecker/ to pick the lightest colour that still passes the accessibility checks (which seem to be a contrast ratio of at least 7:1)

Comment thread cheatsheets.tex
}


\newcommand{\optional}[1]{\textcolor{gray}{#1}}
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.

Are you sure it's 78/78/78? That gives me a contrast of 8.32:1 on the site you linked. To get 7:1, I see down to #595959 or (89, 89, 89).

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.

Grey text of the Cheastsheets is hard to read when printed

2 participants