-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: add checkbox field error variant #2638
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
ca9bc19
to
622ef30
Compare
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.
Is there any "rule" to follow for the identation of the properties? Or just need to space out to be easy to read? |
What's the purpose of this pull request?
This pull request adds styles and an error text for the CheckboxField component. Additionally, it adjusts the styles of the CheckboxField label. This new styling will be used in the modal for adding a review to a product in the new Reviews and Ratings section.
How it works?
I added the
error
andalignment
props to theCheckboxField
component. Thealignment
prop is used to vertically align the checkbox, with the default value set tocenter
.Additionally, the
label
was not previously styled, so I added styles to it based on the Figma to ensure the label is displayed correctly.How to test it?
Starters Deploy Preview
Preview
References
JIRA TASK: SFS-2073
Figma