feat: Added data attribute to FormLabel when field is invalid
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 is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
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)
This PR has been automatically closed due to one year of inactivity. Thank you for your understanding! (This is an automated message)