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 @@ -183,6 +183,7 @@ export default function RequestDetailsTab() {
"text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20",
"w-full min-w-0 cursor-pointer"
)}
style={{ colorScheme: 'auto' }}
>
<option value="">All Providers</option>
{providers.map((provider) => (
Expand Down
16 changes: 16 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@
color-scheme: dark;
}

/* ============================================================
Fix native select dropdowns in dark mode
============================================================ */
select {
color-scheme: light;
}

.dark select {
color-scheme: dark;
}

.dark select option {
background-color: var(--color-surface);
color: var(--color-text-main);
}

@theme inline {
/* Brand scale */
--color-brand-50: var(--color-brand-50);
Expand Down
1 change: 1 addition & 0 deletions src/shared/components/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function Pagination({
"text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20",
"cursor-pointer"
)}
style={{ colorScheme: 'auto' }}
>
{[10, 20, 50].map((size) => (
<option key={size} value={size}>
Expand Down
3 changes: 2 additions & 1 deletion src/shared/components/UsageStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ export default function UsageStats({ period: periodProp, setPeriod: setPeriodPro
<select
value={tableView}
onChange={(e) => setTableView(e.target.value)}
className="w-full rounded-lg border border-border bg-bg-subtle px-3 py-1.5 text-sm font-medium text-text focus:outline-none focus:ring-2 focus:ring-primary/50 sm:w-auto"
className="w-full rounded-lg border border-border bg-surface px-3 py-1.5 text-sm font-medium text-text-main focus:outline-none focus:ring-2 focus:ring-primary/50 sm:w-auto"
style={{ colorScheme: 'auto' }}
>
{TABLE_OPTIONS.map((opt) => (
<option key={opt.value} value={opt.value}>{opt.label}</option>
Expand Down