1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Update code comment color for accessibility (#42117)

This commit is contained in:
Grace Park
2023-09-06 11:23:51 -07:00
committed by GitHub
parent 8756ab55f9
commit b68253ba2d

View File

@@ -12,11 +12,15 @@ from https://unpkg.com/highlight.js@9.15.8/styles/github.css
background: var(--color-canvas-subtle); background: var(--color-canvas-subtle);
} }
.hljs-comment,
.hljs-quote { .hljs-quote {
color: var(--color-prettylights-syntax-comment); 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-keyword,
.hljs-selector-tag { .hljs-selector-tag {
color: var(--color-prettylights-syntax-keyword); color: var(--color-prettylights-syntax-keyword);