Skip to content

Commit

Permalink
set default background color for editors (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock committed Aug 9, 2022
1 parent 4e3fbaa commit 3d44057
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-actors-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphiql/react': patch
---

Set background color for editor to white by default
4 changes: 2 additions & 2 deletions packages/graphiql-react/src/editor/style/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
font-family: var(--font-family-mono);
}

/* Reset any background color */
/* Set default background color */
.CodeMirror,
.CodeMirror-gutters {
background: none;
background-color: transparent;
background-color: var(--color-neutral-0);
}

/* No padding around line number */
Expand Down
3 changes: 0 additions & 3 deletions packages/graphiql/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
flex: 1;
flex-direction: column;
}
.graphiql-container .graphiql-editors .CodeMirror-gutters {
background-color: var(--color-neutral-0);
}

/* The response view */
.graphiql-container .graphiql-response {
Expand Down

0 comments on commit 3d44057

Please sign in to comment.