-
Notifications
You must be signed in to change notification settings - Fork 615
feat: add support for className to FormControl.Validation #5984
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
Conversation
🦋 Changeset detectedLatest commit: 125f4b9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for a custom className prop to FormControl.Validation.
- Updates the InputValidation component to accept and pass through a className prop using clsx.
- Propagates the className prop in the internal FormControlValidation component.
- Adds a test ensuring the className prop is correctly applied.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/react/src/internal/components/InputValidation.tsx | Allows a custom className by augmenting the component's props and using clsx to merge classes. |
packages/react/src/FormControl/_FormControlValidation.tsx | Passes the className prop to the InputValidation component. |
packages/react/src/FormControl/tests/FormControl.Validation.test.tsx | Adds a test to validate that the custom className is applied correctly. |
.changeset/fine-bugs-shine.md | Documents the minor release change for adding className support. |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
Add support for
className
toFormControl.Validation
Changelog
New
className
toFormControl.Validation
Changed
Removed
Rollout strategy