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 Aug 24, 2022
1 parent 91890d3 commit 6cf88e2
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 6cf88e2

Please sign in to comment.