ui icon indicating copy to clipboard operation
ui copied to clipboard

feat: Added data attribute to FormLabel when field is invalid

Open frannoriega opened this issue 1 year ago • 1 comments

Currently, we were setting the class text-destructive to the Label element, when the form field had invalid values. That was problematic, since it didn't allow the user to customize the style of the Label component.

To solve this, I've added a data attribute, data-invalid, when the form field is invalid. The users can then use that to customize the style.

frannoriega avatar Oct 02 '24 14:10 frannoriega

@frannoriega is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 02 '24 14:10 vercel[bot]

This PR has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this PR is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)

shadcn avatar Oct 08 '25 23:10 shadcn

This PR has been automatically closed due to one year of inactivity. Thank you for your understanding! (This is an automated message)

shadcn avatar Oct 16 '25 23:10 shadcn