Skip to content

feat: add checkbox field error variant - #2638

Merged
hellofanny merged 3 commits into
mainfrom
feat/add-checkbox-field-error-variant
Feb 11, 2025
Merged

hellofanny merged 3 commits into
mainfrom
feat/add-checkbox-field-error-variant

Conversation

@artursantiago

@artursantiago artursantiago commented Jan 28, 2025 •

Copy link
Copy Markdown
Contributor

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
@vercel

vercel Bot commented Jan 28, 2025 •

Copy link
Copy Markdown

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

@codesandbox-ci

codesandbox-ci Bot commented Jan 28, 2025 •

Copy link
Copy Markdown

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

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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?

@hellofanny

Copy link
Copy Markdown
Contributor

@hellofanny

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

Just add the spaces will do 👍

@hellofanny
hellofanny merged commit 95e1ac6 into main Feb 11, 2025
@hellofanny
hellofanny deleted the feat/add-checkbox-field-error-variant branch February 11, 2025 00:44
artursantiago added a commit that referenced this pull request Feb 14, 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?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->


[Preview](https://starter-git-chore-add-checkbox-cli-vtex.vercel.app/review-and-ratings-playground)

## References

[JIRA TASK: SFS-2073](https://vtex-dev.atlassian.net/browse/SFS-2073)


[Figma](https://www.figma.com/design/YXU6IX2htN2yg7udpCumZv/Reviews-%26-Ratings?node-id=131-65865&t=iOanfcOwmDa4bolf-4)


![image](https://github.com/user-attachments/assets/8d1e12e2-01c2-4878-88fe-cf0b9208e1b4)
artursantiago added a commit that referenced this pull request Feb 14, 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?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->


[Preview](https://starter-git-chore-add-checkbox-cli-vtex.vercel.app/review-and-ratings-playground)

## References

[JIRA TASK: SFS-2073](https://vtex-dev.atlassian.net/browse/SFS-2073)


[Figma](https://www.figma.com/design/YXU6IX2htN2yg7udpCumZv/Reviews-%26-Ratings?node-id=131-65865&t=iOanfcOwmDa4bolf-4)


![image](https://github.com/user-attachments/assets/8d1e12e2-01c2-4878-88fe-cf0b9208e1b4)
artursantiago added a commit that referenced this pull request Feb 14, 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?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->


[Preview](https://starter-git-chore-add-checkbox-cli-vtex.vercel.app/review-and-ratings-playground)

## References

[JIRA TASK: SFS-2073](https://vtex-dev.atlassian.net/browse/SFS-2073)


[Figma](https://www.figma.com/design/YXU6IX2htN2yg7udpCumZv/Reviews-%26-Ratings?node-id=131-65865&t=iOanfcOwmDa4bolf-4)


![image](https://github.com/user-attachments/assets/8d1e12e2-01c2-4878-88fe-cf0b9208e1b4)
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