Skip to content

shadcn related fixes#26

Merged
zwgnr merged 1 commit intomainfrom
shadcn-fixes
Oct 6, 2025
Merged

shadcn related fixes#26
zwgnr merged 1 commit intomainfrom
shadcn-fixes

Conversation

@zwgnr
Copy link
Copy Markdown
Owner

@zwgnr zwgnr commented Oct 6, 2025

fix target install path

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 6, 2025

⚠️ No Changeset found

Latest commit: 5012094

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
baselayer Ready Ready Preview Comment Oct 6, 2025 3:21am

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on November 14

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

"path": "src/core/radio-group/radio-group.tsx",
"content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\n\nimport type {\n RadioGroupProps as AriaRadioGroupProps,\n RadioProps,\n ValidationResult,\n} from \"react-aria-components\";\nimport {\n Radio as AriaRadio,\n RadioGroup as AriaRadioGroup,\n FieldError,\n Text,\n} from \"react-aria-components\";\nimport { tv } from \"tailwind-variants\";\n\nconst radioGroup = tv({\n slots: {\n radio:\n \"flex items-center gap-4 text-fg before:block before:h-5 before:w-5 before:rounded-full before:border before:border-border before:ring-focus before:ring-offset-2 before:ring-offset-surface before:transition-all data-[selected]:before:border-4 data-[selected]:before:border-primary data-[focus-visible]:before:ring-2\",\n group: \"flex flex-col gap-4 text-fg\",\n },\n});\n\nconst { group, radio } = radioGroup();\n\ninterface RadioGroupProps extends Omit<AriaRadioGroupProps, \"children\" | \"className\"> {\n className?: string;\n children?: ReactNode;\n label?: string;\n description?: string;\n errorMessage?: string | ((validation: ValidationResult) => string)\n}\n\nconst RadioGroup = ({\n className,\n label,\n description,\n errorMessage,\n children,\n ...props\n}: RadioGroupProps) => (\n <AriaRadioGroup className={group({ className })} {...props}>\n {label}\n {children}\n {description && <Text slot=\"description\">{description}</Text>}\n <FieldError className=\"text-fg-error text-sm\">{errorMessage}</FieldError>\n </AriaRadioGroup>\n);\n\nconst Radio = ({\n children,\n className,\n ...props\n}: RadioProps & {\n className?: string;\n}) => (\n <AriaRadio className={radio({ className })} {...props}>\n {children}\n </AriaRadio>\n);\n\nexport { RadioGroup, Radio }; ",
"type": "registry:component"
"content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\n\nimport type {\n RadioGroupProps as AriaRadioGroupProps,\n RadioProps,\n ValidationResult,\n} from \"react-aria-components\";\nimport {\n Radio as AriaRadio,\n RadioGroup as AriaRadioGroup,\n FieldError,\n Text,\n} from \"react-aria-components\";\nimport { tv } from \"tailwind-variants\";\n\nconst radioGroup = tv({\n slots: {\n radio:\n \"flex items-center gap-4 text-fg before:block before:h-5 before:w-5 before:rounded-full before:border before:border-border before:ring-focus before:ring-offset-2 before:ring-offset-surface before:transition-all data-[selected]:before:border-4 data-[selected]:before:border-primary data-[focus-visible]:before:ring-2\",\n group: \"flex flex-col gap-4 text-fg\",\n },\n});\n\nconst { group, radio } = radioGroup();\n\ninterface RadioGroupProps extends Omit<AriaRadioGroupProps, \"children\" | \"className\"> {\n className?: string;\n children?: ReactNode;\n label?: string;\n description?: string;\n errorMessage?: string | ((validation: ValidationResult) => string)\n}\n\nconst RadioGroup = ({\n className,\n label,\n description,\n errorMessage,\n children,\n ...props\n}: RadioGroupProps) => (\n <AriaRadioGroup className={group({ className })} {...props}>\n {label}\n {children}\n {description && <Text slot=\"description\">{description}</Text>}\n <FieldError className=\"text-danger text-sm\">{errorMessage}</FieldError>\n </AriaRadioGroup>\n);\n\nconst Radio = ({\n children,\n className,\n ...props\n}: RadioProps & {\n className?: string;\n}) => (\n <AriaRadio className={radio({ className })} {...props}>\n {children}\n </AriaRadio>\n);\n\nexport { RadioGroup, Radio }; ",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent Error Message Styling

The radio-group component's FieldError uses text-fg-error for error messages. This class is undefined in the design system; text-danger is consistently used across other components. Consequently, error messages may not display with the correct styling.

Fix in Cursor Fix in Web

@zwgnr zwgnr merged commit 0d72962 into main Oct 6, 2025
5 checks passed
@zwgnr zwgnr deleted the shadcn-fixes branch October 6, 2025 03:21
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.

1 participant