Repository navigation
Tailwind v4 + Radix UI (shadcn) Dropdown/Select Transparent After Upgrade #17137
Replies: 11 comments 5 replies
|
Same problem here! |
|
@androidStern @MbBrainz Hello ~ Have you tried the official upgrade command, you can use Upgrade Tool: npx @tailwindcss/upgradeI encountered a similar issue when upgrading from Tailwind Additionally, Tailwind You can refer to this repo nextjs-nextra-starter and Commits |
|
Same problem here. Total mystery... |
|
I'm using shadcn for the first time bg-popover just does not seem to work in tailwind v4. Am I missing something here? |
|
do not use shadcn@latest add select Also you might want to use tailwindcss@3 |
|
Hello guys, Just copy and paste the css code below into your global.css You can further make changes to it as you like once it works. |
|
I updated in , and it seems to work |
|
Add these props to your SelectContent. This should work: |
|
I had same Problem, here in ❌ |
|
Like most people i've just override the css. and in dark light theme set the color (suppose to already be there): |




Uh oh!
There was an error while loading. Please reload this page.
Tailwind v4 + Radix UI (shadcn) Dropdown/Select Transparent After Upgrade
Body:
I recently upgraded a Next.js 14.2 project from Tailwind v3 to Tailwind v4. After the upgrade, several Radix UI components (from [shadcn/ui](https://github.com/shadcn/ui)), including the
Selectdropdown, started rendering fully transparent. The dropdown menu is visible as text floating on the page, with no background panel at all.Here’s a minimal snippet of one of the affected components (
InviteUserForm), showing how I’m usingRadixSelectwith shadcn’s utility components:What I’ve observed:
bg-popoveror similar classes are present, but no actual background color is applied.globals.csswith custom@layer base { :root { ... } }for shadcn’s theme variables, and I do see--popover: 0 0% 100%;for white, but it’s not showing up.!importantrules like:element {
background-color: #fff !important;
}
Still shows transparent.
Has anyone encountered Tailwind v4 + Radix UI dropdowns rendering invisible backgrounds? Am I missing some new v4 config or a known fix for these theme variables? Any guidance or best practices for making the
SelectContentbackground appear properly would be greatly appreciated!Thanks in advance!
All reactions