Skip to content

Commit dfa64c4

Browse files
authored
Fix version selector black box background (#87)
1 parent 8363db8 commit dfa64c4

File tree

7 files changed

+4
-2
lines changed

7 files changed

+4
-2
lines changed
637 KB
Loading
624 KB
Loading
645 KB
Loading
642 KB
Loading
624 KB
Loading

src/components/Sidebar.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const showVersionSelector = versionId !== null && API_VERSIONS.length > 1;
2727
position: sticky;
2828
bottom: 0;
2929
padding: 1rem;
30-
background: var(--sl-color-bg-sidebar);
3130
margin-top: auto;
3231
}
3332
</style>

src/components/react/api/VersionSelector.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export function VersionSelector({ currentPath }: VersionSelectorProps) {
6464

6565
return (
6666
<Select value={currentVersionId || ''} onValueChange={handleVersionChange}>
67-
<SelectTrigger className="w-full h-9 text-sm bg-[var(--sl-color-bg)] border-[var(--sl-color-gray-5)]">
67+
<SelectTrigger
68+
className="w-full h-9 text-sm border-[var(--sl-color-gray-5)]"
69+
style={{ backgroundColor: 'var(--sl-color-gray-6)' }}
70+
>
6871
<SelectValue>
6972
<div className="flex items-center gap-2">
7073
<span>{currentVersion.label}</span>

0 commit comments

Comments
 (0)