diff --git a/.changeset/transparent-scrollbars.md b/.changeset/transparent-scrollbars.md new file mode 100644 index 00000000000..6187c4d6182 --- /dev/null +++ b/.changeset/transparent-scrollbars.md @@ -0,0 +1,6 @@ +--- +"@graphiql/react": patch +"graphiql": patch +--- + +style: improve scrollbar styling on the query editor diff --git a/packages/graphiql-react/src/style/root.css b/packages/graphiql-react/src/style/root.css index adf9e2f002a..fcb30dfe77b 100644 --- a/packages/graphiql-react/src/style/root.css +++ b/packages/graphiql-react/src/style/root.css @@ -146,3 +146,15 @@ body.graphiql-dark [data-radix-popper-content-wrapper] { } } } + +/* Transparent scrollbars, without backgrounds */ +.graphiql-container .CodeMirror-hscrollbar, +.graphiql-container .CodeMirror-vscrollbar { + scrollbar-color: #88888888 transparent; +} + +/* The little square between H and V scrollbars */ +.graphiql-container .CodeMirror-scrollbar-filler, +.graphiql-container .CodeMirror-gutter-filler { + background-color: transparent; +}