Skip to content

Commit

Permalink
set default background colors via css variables (#2530)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock committed Jul 20, 2022
1 parent 7665ff4 commit 44460e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphiql-react/src/editor/style/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.CodeMirror,
.CodeMirror-gutters {
background: none;
background-color: var(--color-neutral-0);
background-color: var(--editor-background, var(--color-neutral-0));
}

/* No padding around line number */
Expand Down
1 change: 1 addition & 0 deletions packages/graphiql/src/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
}

.graphiql-container .result-window {
--editor-background: var(--color-neutral-7);
flex: 1;
height: 100%;
position: relative;
Expand Down

0 comments on commit 44460e0

Please sign in to comment.