Skip to content

Commit

Permalink
add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMightyPenguin committed Nov 18, 2022
1 parent 87e20ff commit 1f18051
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/graphiql/src/components/GraphiQL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ export function GraphiQLInterface(props: GraphiQLInterfaceProps) {
Persist headers
</div>
<div className="graphiql-dialog-section-caption">
Save headers upon reloading.
Save headers upon reloading.{' '}
<span className="graphiql-warning-text">
Only enable if you trust this device.
</span>
</div>
</div>
<ButtonGroup>
Expand Down
5 changes: 5 additions & 0 deletions packages/graphiql/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ reach-portal .graphiql-dialog-section-caption {
color: hsla(var(--color-neutral), var(--alpha-secondary));
}

reach-portal .graphiql-warning-text {
color: hsl(var(--color-warning));
font-weight: var(--font-weight-medium);
}

reach-portal .graphiql-table {
border-collapse: collapse;
width: 100%;
Expand Down

0 comments on commit 1f18051

Please sign in to comment.