-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate style properties on checkbox component #2424
Comments
Running into the same issue. From what I can see: through The PR uses a |
The same issue goes for the radio-group component. Just wrote a comment in the other issue because I was too blind to see this issue here: #692 (comment) |
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
@shadcn I don't think this should be closed |
generated checkbox component with a cli contains duplicated styles border-gray-200 border-gray-900 and dark:border-gray-800 dark:border-gray-50:
`
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { CheckIcon } from "@radix-ui/react-icons"
import { cn } from "@/lib/utils"
const Checkbox = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
</CheckboxPrimitive.Root>
))
Checkbox.displayName = CheckboxPrimitive.Root.displayName
export { Checkbox }
`
my components.json (changing cssVariables to true fixes it):
{ "$schema": "https://ui.shadcn.com/schema.json", "style": "default", "rsc": false, "tsx": true, "tailwind": { "config": "tailwind.config.ts", "css": "src/styles/globals.css", "baseColor": "gray", "cssVariables": false, "prefix": "" }, "aliases": { "components": "@/components", "utils": "@/lib/utils" } }
The text was updated successfully, but these errors were encountered: