Repository navigation
fix(dashboard): match native controls to the theme in Safari - #5432
Merged
Merged
Conversation
Contributor
Vercel Deployment Info - dashboard
|
dbarrosop
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
🤖 Generated with nhost-code
Goal
Fix how dashboard components render in Safari. Safari draws native form parts (file input button, scrollbars, date pickers, autofill) using the page's declared color scheme. The dashboard never declared one, so in dark mode Safari kept light native controls and default dark text, which made parts of components look broken. The intended outcome is that native control parts match the active light or dark theme in Safari, with no visual change in other browsers.
Type: Bug fix
Changes
:rootnow setscolor-scheme: lightand.darksetscolor-scheme: darkinside the existing@layer basetoken blocks. Because the theme toggle already switches thedarkclass onhtml, the browser's native UI for inputs, scrollbars and pickers now follows the same theme as the design tokens.Inputaddsfile:text-foreground, so the::file-selector-buttontext uses the foreground token instead of the browser default, which Safari rendered unreadable in dark mode.Key files
dashboard/src/styles/globals.css(+2/-0) —color-schemedeclarations for the light and dark token blocks.dashboard/src/components/ui/v3/input.tsx(+1/-1) — foreground color for the file selector button.