Skip to content

Commit c057e04

Browse files
dstansbyQuLogic
andauthored
Improve contrast between optional argument text and background (#187)
* Improve contrast between optional argument text and background * Use 89, 89, 89 for lighter text colour * Fix latex comment Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 982b9b0 commit c057e04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cheatsheets.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@
149149
}
150150

151151

152-
\newcommand{\optional}[1]{\textcolor{gray}{#1}}
152+
% 89, 89, 89 is the lightest colour that still gives a good contrast ratio with the white background
153+
\newcommand{\optional}[1]{\textcolor[RGB]{89, 89, 89}{#1}}
153154
\newcommand{\mandatory}[1]{\textbf{#1}}
154155
\newcommand{\parameter}[2]{%
155156
\expandafter\ifstrequal\expandafter{#1}{optional}%

0 commit comments

Comments
 (0)