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 PriceRange #165

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Conversation

renatamottam
Copy link
Collaborator

@renatamottam renatamottam commented Aug 3, 2022

What's the purpose of this pull request?

Ported from next.store repo: Feat: adds tokens to PriceRange #146

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

How does it work?

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

Tokens list can be visualized in the Storybook.

How to test it?

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

image

Checklist

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.

* Updates `PriceRange` tokens

* Begins to add `InputText` for `PriceRange`

* Minor code improvements

* Fixes `PriceRange` input hover

* Makes slider inputs change along with the other inputs

* Adds price formatter options to support format price without decimals

* Fixes `onChange` callbacks for min/max inputs

* Updates FS package

* Tweaks `PriceRange` label

* Updates Changelog

* Updates FS package

* Bump `@faststore/ui` version

* Improves PriceRange

* Uses `onEnd` instead `onChange` for `UIPriceRange`

* Handles external `onEnd` definitions

* Round absolute values

* Bump `@faststore/ui` version

* Fixes `PriceRange` slider selection token

* Removes unneeded `argTypes` from `ArgsTable`

* Some improvements in min/max price validations;
Submit action through inputs' `onBlur` callbacks

* Updates `PriceRange` tokens

* Tweaks `Input` message

* Fixes `PriceRange` step

* Removes unneeded `argTypes` from `ArgsTable`

* Use Math's `ceil` instead `round` for max absolute price

* Sets standard `step` (1) to FS's `PriceRange`

* Adds hover state for `Slider` thumbs

* Tweaks `PriceRange` tokens

* Bump `@faststore/ui` version

* Improves `InputText` message

* Attempts to fix Value Label interaction

* Fixes Value Label position

* Formats absolute prices to match with the `Slider` thumb values

* Update Changelog

Co-authored-by: Filipe W. Lima <[email protected]>

* Fixes `PriceRange` token list

Co-authored-by: Filipe W. Lima <[email protected]>

* Updates `PriceRange` token list

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Filipe W. Lima <[email protected]>
@renatamottam renatamottam self-assigned this Aug 3, 2022
@vercel
Copy link

vercel bot commented Aug 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 Sep 3, 2022 at 3:01AM (UTC)

@renatamottam renatamottam added Documentation Improvements or additions to documentation Features New feature or request labels Aug 3, 2022
@renatamottam renatamottam requested a review from lucasfp13 August 3, 2022 03:03
@renatamottam renatamottam marked this pull request as ready for review August 3, 2022 03:04
Copy link
Contributor

@lucasfp13 lucasfp13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@lucasfp13 lucasfp13 merged commit a03f037 into main Aug 3, 2022
@lucasfp13 lucasfp13 deleted the feat/theming-price-range-fsss-21 branch August 3, 2022 18:04
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.

2 participants