From b68253ba2d631d30bda4fb10bfceeefb923bc678 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Wed, 6 Sep 2023 11:23:51 -0700 Subject: [PATCH] Update code comment color for accessibility (#42117) --- stylesheets/syntax-highlighting.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stylesheets/syntax-highlighting.scss b/stylesheets/syntax-highlighting.scss index 791d64163f..3f51b6d71b 100644 --- a/stylesheets/syntax-highlighting.scss +++ b/stylesheets/syntax-highlighting.scss @@ -12,11 +12,15 @@ from https://unpkg.com/highlight.js@9.15.8/styles/github.css background: var(--color-canvas-subtle); } -.hljs-comment, .hljs-quote { color: var(--color-prettylights-syntax-comment); } +// Updating color for code comments from prettylights to codemirror due to accessibility issues: audit 4975 +.hljs-comment { + color: var(--color-codemirror-syntax-comment); +} + .hljs-keyword, .hljs-selector-tag { color: var(--color-prettylights-syntax-keyword);