Skip to content

fix(native-select): use system colors for option and optgroup#10242

Open
Yngesh-Raman-QED42 wants to merge 1 commit intoshadcn-ui:mainfrom
Yngesh-Raman-QED42:fix/native-select-option-colors
Open

fix(native-select): use system colors for option and optgroup#10242
Yngesh-Raman-QED42 wants to merge 1 commit intoshadcn-ui:mainfrom
Yngesh-Raman-QED42:fix/native-select-option-colors

Conversation

@Yngesh-Raman-QED42
Copy link
Copy Markdown

Summary

Use browser system color classes for NativeSelectOption and NativeSelectOptGroup (bg-[Canvas] text-[CanvasText]) to improve <option> rendering consistency where CSS variables/OKLCH are unreliable.

Scope

Updated all native-select variants (15 files), including base/radix/new-york sources and style/RTL variants.

Fixes #10237

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

@Yngesh-Raman-QED42 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Unable to apply background color (OKLCH / CSS variables) to <option> in Select / native select fallback

1 participant