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 new tokens to Breadcrumb #146

Merged
merged 6 commits into from
Jul 12, 2022

Conversation

eduardoformiga
Copy link
Member

What's the purpose of this pull request?

Ported from vtex-sites/nextjs.store#162

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

How does it work?

This PR uses local variables to parameterize the Breadcrumb and then connects these scoped tokens to the global ones.

Tokens can be visualized in the storybook.

image

How to test it?

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

References

https://www.figma.com/file/zHMOtOPduiM0hNNcg21iR1/Handoff-v1(PDP)?node-id=18%3A33143

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.
  • Identified the function or parameter in the PR - If applicable. E.g., useWindowDimensions hook.

Documentation

  • PR description
  • Added to/Updated the Storybook - if applicable.
  • For documentation changes, ping @ carolinamenezes, @ PedroAntunesCosta or @ Mariana-Caetano to review and update.

eduardoformiga and others added 3 commits July 11, 2022 17:51
* Adds CSS Modules and themification to breadcrumb

* Tweaks hover first item

* Creates Breadcrumb stories using new format

* Adds CHANGELOG entry

* Adds margin top token

* Removes irrelevant rule

* tweaks bkg token name

Co-authored-by: Renata Motta <[email protected]>

* Removes margin token from button

* Uses DotsThree icon instead of text

* Centralizes dropdown button

* Tweaks tokens to use home instead of first

* Uses last-child instead of current data-attr

* Trigger CI

Co-authored-by: Renata Motta <[email protected]>
@vercel
Copy link

vercel bot commented Jul 11, 2022

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

Name Status Preview Updated
gatsby-store-storybook ✅ Ready (Inspect) Visit Preview Jul 12, 2022 at 2:59PM (UTC)

@vtex-sites
Copy link

vtex-sites bot commented Jul 11, 2022

Preview is ready

This pull request generated a Preview

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

@vtex-sites
Copy link

vtex-sites bot commented Jul 11, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 1219255

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

Copy link
Collaborator

@renatamottam renatamottam left a comment

Choose a reason for hiding this comment

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

Approving cuz it looks the same on NextJS

@renatamottam renatamottam added Documentation Improvements or additions to documentation Features New feature or request labels Jul 12, 2022
@eduardoformiga eduardoformiga merged commit 1219255 into main Jul 12, 2022
@eduardoformiga eduardoformiga deleted the feat/theming-breadcrumb-fs-373 branch July 12, 2022 15:11
renatamottam pushed a commit that referenced this pull request Aug 3, 2022
* 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]>
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