ui
ui copied to clipboard
fix(menu triggers): prevents white trigger background when background is dark
When creating a component with a dark background, use a DropdownMenu. If we open the dropdown (the Radix data-state goes to "open"), if the background is dark the button will behave with a white bg, and as the text was already white, it will be lost with the new trigger background.
The proposal is to leave a bg-inherit and take the bg of the main element.
I have done this with both DropdownMenu and ContextMenu as the behavior is the same.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-template | ⬜️ Ignored (Inspect) | Apr 9, 2023 11:31pm |
@damianricobelli is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.