Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@
cursor: pointer;
text-align: left;
width: 100%;
transition: background var(--transition-fast);

&:hover {
background: oklch(var(--fg-default) / 0.04);
background: oklch(var(--bg-subtle));
}

&:focus-visible {
Expand All @@ -72,7 +73,7 @@
}
}

/* Active row — blue accent */
/* Active row — blue accent, reserved for the selected field */
.graphiql-doc-explorer-field-row--active {
background: oklch(var(--accent-blue) / 0.08);
border-left-color: oklch(var(--accent-blue));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
width: 100%;
font-family: var(--font-family-mono);
font-size: 12px;
transition: background var(--transition-fast);

&:hover {
background: oklch(var(--fg-default) / 0.04);
background: oklch(var(--bg-subtle));
}

&:focus-visible {
Expand Down Expand Up @@ -72,9 +73,10 @@
cursor: pointer;
text-align: left;
width: 100%;
transition: background var(--transition-fast);

&:hover {
background: oklch(var(--fg-default) / 0.04);
background: oklch(var(--bg-subtle));
}

&:focus-visible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,11 @@
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
transition: background-color var(--transition-fast);

&[data-headlessui-state='active'] {
background-color: oklch(var(--fg-default) / 0.08);
}

&[data-headlessui-state='active'],
&:hover {
background-color: oklch(var(--fg-default) / 0.12);
}

&[data-headlessui-state='active']:hover {
background-color: oklch(var(--fg-default) / 0.16);
background-color: oklch(var(--bg-subtle));
}

& + [role='option'] {
Expand Down
12 changes: 3 additions & 9 deletions packages/graphiql-plugin-doc-explorer/src/components/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,11 @@
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
transition: background-color var(--transition-fast);

&[data-headlessui-state='active'] {
background-color: oklch(var(--fg-default) / 0.08);
}

&[data-headlessui-state='active'],
&:hover {
background-color: oklch(var(--fg-default) / 0.12);
}

&[data-headlessui-state='active']:hover {
background-color: oklch(var(--fg-default) / 0.16);
background-color: oklch(var(--bg-subtle));
}

& + & {
Expand Down
10 changes: 8 additions & 2 deletions packages/graphiql-plugin-history/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@
border-bottom: 1px solid oklch(var(--border-default));
display: flex;
align-items: stretch;
transition: background-color var(--transition-fast);

&:hover {
background-color: oklch(var(--accent-blue) / 0.06);
background-color: oklch(var(--bg-subtle));
}

/* Editing (rename) is an active state, not a hover — keeps the accent-blue
tint reserved for active/selected. */
&.editable {
background-color: oklch(var(--accent-blue) / 0.08);

Expand Down Expand Up @@ -129,10 +132,13 @@
display: flex;
padding: var(--px-6);
border-radius: var(--radius-sm);
transition:
color var(--transition-fast),
background-color var(--transition-fast);

&:hover {
color: oklch(var(--fg-default));
background-color: oklch(var(--fg-default) / 0.06);
background-color: oklch(var(--bg-subtle));
}

& > svg {
Expand Down
3 changes: 3 additions & 0 deletions packages/graphiql-react/src/style/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
/* Shadows */
--shadow-popover:
0 4px 12px oklch(0% 0 0 / 0.3), 0 1px 3px oklch(0% 0 0 / 0.15);

/* Motion */
--transition-fast: 120ms ease;
}

[data-theme='light'] {
Expand Down
Loading