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: Adds tokens to Radio #89

Merged
merged 5 commits into from
Jun 7, 2022
Merged

Conversation

renatamottam
Copy link
Collaborator

@renatamottam renatamottam commented Jun 3, 2022

Cherry-pick from NextJS Project: https://github.com/vtex-sites/nextjs.store/pull/87

What's the purpose of this pull request?

This PR applies the new Theming structure to Radio: new scoped tokens linked to global ones.

Additionally, I updated Checkbox's hover state to follow Radio definitions.

How does it work?

This PR uses local variables to parameterize the Radio properties, then connects these scoped tokens to the global ones.
image
See Story for full tokens documentation.

How to test it?

You can check the story on Storybook: Preview Link

Checklist

  • Added an entry in the CHANGELOG.md at the beginning of its due section. The latest version should comes first.
  • Added the PR number with the PR link at the entry in the CHANGELOG.md. E.g., New items in the pull_request_template.md (#4)
  • Updated the Storybook - if applicable.
  • Added a label according to the PR goal - Breaking change, Enhancement, Bug or Chore.
  • Added the component, hook, or pathname in-between backticks (``) - If applicable. E.g., ComponentName component.

* Creates Input Radio

* Styles Radio

* Adds Radio to Storybook

* Adds tokens tables

* Fixes Storybook table width

* Fixes Checkbox hovers

* Updates Changelog

* Fix typo

Co-authored-by: Fanny Chien <fannychienn@gmail.com>

* Updates Checkbox Story to use TokenTable

Co-authored-by: Fanny Chien <fannychienn@gmail.com>
@renatamottam renatamottam added Features New feature or request Chore General tasks. labels Jun 3, 2022
@renatamottam renatamottam self-assigned this Jun 3, 2022
@vercel
Copy link

vercel bot commented Jun 3, 2022

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

Name Status Preview Updated
gatsby-store-storybook ✅ Ready (Inspect) Visit Preview Jun 7, 2022 at 5:13PM (UTC)

@vtex-sites
Copy link

vtex-sites bot commented Jun 3, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://sfj-898f27e--gatsby.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit 898f27e

@vtex-sites
Copy link

vtex-sites bot commented Jun 3, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 898f27e

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse-99988212/p
📎   /office

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.

Approving because It's working fine on the preview, and seems like all the changes made on https://github.com/vtex-sites/nextjs.store/pull/87 is also here.

Copy link
Member

@eduardoformiga eduardoformiga left a comment

Choose a reason for hiding this comment

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

Amazing job! ✨

I think we could pass other props to the radio component.
What do you think?

Co-authored-by: Eduardo Formiga <eduardo.formiga@vtex.com.br>
@renatamottam renatamottam merged commit f12b84e into main Jun 7, 2022
@renatamottam renatamottam deleted the feat/theming-radio-fsss-270 branch June 7, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore General tasks. Features New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants