Skip to content

Commit 69ba0ab

Browse files
committed
Fix contrast issues with comments in code examples
The colours were updated to better match version 6 but for comments they were mistakenly set to the wrong colour. This results in comments that are very hard to read. I have put in a quick patch here to resolve the issue immediately and will upstream this patch into the tech-docs-gem. alphagov/tech-docs-gem@f09a4b8#diff-81435f36c443c406a3436b0531a4991cd20655917ede750cec10d5b2c6b3bdcf
1 parent bbdd79f commit 69ba0ab

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/stylesheets/screen.css.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
.technical-documentation .table-container td > code {
55
white-space: nowrap;
66
}
7+
8+
// Temporarily override syntax highlighting to fix poor contrast for comments.
9+
.highlight .c,
10+
.highlight .cm,
11+
.highlight .cp,
12+
.highlight .c1,
13+
.highlight .cs { /* Comment.Special */
14+
color: govuk-functional-colour(secondary-text);
15+
}

0 commit comments

Comments
 (0)