Skip to content

Commit

Permalink
fix: playground theme settings (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnithin authored May 20, 2024
1 parent 432b639 commit 00d692a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
10 changes: 0 additions & 10 deletions playground/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ html {
}
}

.graphiql-container,
.CodeMirror-info,
.CodeMirror-lint-tooltip,
.graphiql-dialog,
.graphiql-dialog-overlay,
.graphiql-tooltip,
[data-radix-popper-content-wrapper] {
--color-base: var(--background);
}

@media (prefers-color-scheme: dark) {
body:not(.graphiql-light) .graphiql-container,
body:not(.graphiql-light) .CodeMirror-info,
Expand Down
2 changes: 1 addition & 1 deletion router/internal/graphiql/graphiql.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ const PlaygroundPage: NextPageWithLayout = () => {
toolbar.append(toggleClientValidation);
}

// remove settings button
const sidebarSection = document.getElementsByClassName("graphiql-sidebar-section")[1]
const children = Array.from(sidebarSection.childNodes.values())
sidebarSection.removeChild(children[2])

setIsMounted(true);
}, [isMounted]);

Expand Down

0 comments on commit 00d692a

Please sign in to comment.