Skip to content

Commit

Permalink
fix: updating #999 font colors to #666 (#1883)
Browse files Browse the repository at this point in the history
* fix: updating #999 font colors to #666

Co-authored-by: Dan Sweeney <dsweeney@poppulo.com>
Co-authored-by: Rikki Schulte <rikki.schulte@gmail.com>
  • Loading branch information
3 people committed Oct 29, 2021
1 parent 0240c57 commit afaa36c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/light-olives-rush.md
@@ -0,0 +1,6 @@
---
'graphiql-2-rfc-context': patch
'graphiql': patch
---

Updating font colors for line numbers, comments & brackets from #999 to #666 for accessibility purposes. #666 passes AA accessibility standards for small text, with a contrast ratio of over 5:1.
Expand Up @@ -11,7 +11,7 @@ import { Colors, Space, GraphiQLTheme } from '../types';

const palette = {
neutral: {
20: '#999999',
20: '#666666',
70: '#333333',
90: `rgba(0, 0, 0, 0.1)`,
100: '#fff',
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/src/css/app.css
Expand Up @@ -525,7 +525,7 @@ div.CodeMirror-lint-tooltip > * + * {

/* Comment */
.cm-comment {
color: #999;
color: #666;
}

/* Punctuation */
Expand Down
8 changes: 4 additions & 4 deletions packages/graphiql/src/css/codemirror.css
Expand Up @@ -29,15 +29,15 @@
}
.CodeMirror-linenumbers {}
.CodeMirror-linenumber {
color: #999;
color: #666;
min-width: 20px;
padding: 0 3px 0 5px;
text-align: right;
white-space: nowrap;
}

.CodeMirror-guttermarker { color: black; }
.CodeMirror-guttermarker-subtle { color: #999; }
.CodeMirror-guttermarker-subtle { color: #666; }

/* CURSOR */

Expand Down Expand Up @@ -96,12 +96,12 @@ div.CodeMirror-overwrite div.CodeMirror-cursor {}
.cm-s-default .cm-meta {color: #555;}
.cm-s-default .cm-qualifier {color: #555;}
.cm-s-default .cm-builtin {color: #30a;}
.cm-s-default .cm-bracket {color: #997;}
.cm-s-default .cm-bracket {color: #666;}
.cm-s-default .cm-tag {color: #170;}
.cm-s-default .cm-attribute {color: #00c;}
.cm-s-default .cm-header {color: blue;}
.cm-s-default .cm-quote {color: #090;}
.cm-s-default .cm-hr {color: #999;}
.cm-s-default .cm-hr {color: #666;}
.cm-s-default .cm-link {color: #00c;}

.cm-negative {color: #d44;}
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/src/css/doc-explorer.css
Expand Up @@ -159,7 +159,7 @@
}

.graphiql-container .field-short-description {
color: #999;
color: #666;
margin-left: 5px;
overflow: hidden;
text-overflow: ellipsis;
Expand Down

0 comments on commit afaa36c

Please sign in to comment.