Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

artursantiago
Copy link
Collaborator

@artursantiago artursantiago commented Jan 28, 2025

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 and alignment props to the CheckboxField component. The alignment prop is used to vertically align the checkbox, with the default value set to center.

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

image

@artursantiago artursantiago added the enhancement New feature or request label Jan 28, 2025
Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 30, 2025 8:37pm

Copy link

codesandbox-ci bot commented Jan 28, 2025

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.

@artursantiago artursantiago self-assigned this Jan 28, 2025
@artursantiago artursantiago marked this pull request as ready for review January 30, 2025 17:43
@artursantiago artursantiago requested a review from a team as a code owner January 30, 2025 17:43
@artursantiago artursantiago requested review from emersonlaurentino and lariciamota and removed request for a team January 30, 2025 17:43
Copy link
Contributor

@hellofanny hellofanny left a comment

Choose a reason for hiding this comment

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

LGTM!

image

Nice done.
I'm pre-approving this, but I still need to check the indentation—it looks a little off 🤔 (I'll get back to you after checking)

@artursantiago
Copy link
Collaborator Author

@hellofanny

Is there any "rule" to follow for the identation of the properties? Or just need to space out to be easy to read?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants