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 ProductGrid #127

Merged
merged 5 commits into from
Jun 29, 2022

Conversation

renatamottam
Copy link
Collaborator

What's the purpose of this pull request?

Ported from next.store repo: Adds tokens to ProductGrid #144
This PR applies the new Theming structure to ProductGrid: new scoped tokens linked to global ones.

How does it work?

This PR uses local variables to parameterize the ProductGrid properties, then connects these scoped tokens to the global ones.

Tokens list can be visualized in the storybook.

image

How to test it?

  • The ProductGrid component and its related components should look just as it was before these changes.
  • You can check the story on Storybook.

Checklist

Changelog

  • 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)

PR Description

  • 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.

Documentation

  • PR description
  • Added to/Updated the Storybook - if applicable.

* Fixes Best Practices section

* Creates `ProductGrid` tokens

* Creates ProductGrid doc

Co-Authored-By: Eduardo Formiga <eduardo.formiga@gmail.com>

* Updates Changelog

* Fixes `ProductGrid` description typo

Co-authored-by: Lucas Feijó <lucas.portela@vtex.com.br>

* Hides props that are not working for now

* Improves BestPractices descriptions

Co-authored-by: Eduardo Formiga <eduardo.formiga@gmail.com>
Co-authored-by: Lucas Feijó <lucas.portela@vtex.com.br>
@renatamottam renatamottam added Documentation Improvements or additions to documentation Features New feature or request labels Jun 28, 2022
@renatamottam renatamottam self-assigned this Jun 28, 2022
@vercel
Copy link

vercel bot commented Jun 28, 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 29, 2022 at 2:00PM (UTC)

@vtex-sites
Copy link

vtex-sites bot commented Jun 28, 2022

Preview is ready

This pull request generated a Preview

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

@vtex-sites
Copy link

vtex-sites bot commented Jun 28, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit b77d539

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse/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 looks the same as vtex-sites/nextjs.store#144 👍

@renatamottam renatamottam merged commit b77d539 into main Jun 29, 2022
@renatamottam renatamottam deleted the feat/theming-product-grid-fsss-391 branch June 29, 2022 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Features New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants