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 Navbar #132

Merged
merged 5 commits into from
Jul 1, 2022
Merged

Conversation

eduardoformiga
Copy link
Member

@eduardoformiga eduardoformiga commented Jul 1, 2022

What's the purpose of this pull request?

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

It also refactors and split the navbar-related components as NavbarSlider to its own file.

How does it work?

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

Tokens can be visualized in the storybook.

How to test it?

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

* Extracts Navbar related components and uses CSS Modules

* Updates README navbar example

* Adds tokens to navbar

* Adds tokens to navlinks

* Adds tokens to NavbarSlider

* Tweaks navbar module comments

* Adds CHANGELOG entry

* Tweaks tokens spaces

* Creates Navbar stories

* Creates NavbarSlider stories

* Creates NavLinks stories

* Updates navbar related components links

* Update src/components/common/Navbar/Navbar.stories.mdx

Co-authored-by: Fanny Chien <[email protected]>

* Removes logo img tokens

* Tweaks border color

* Tweaks token name

* Tweaks tokens names

* Groups row token

* Tweaks transition tokens

* Tweaks storybook content width

* Adjusts navbar tokens

* Tweaks Navlinks style

* Uses SectionList on navbar stories

* Tweaks token stories

* Applies token breakpoint name at the end

* Removes row width token

* Removes button collapse token

* Removes button cart token

* Removes overflow token

* Update src/components/common/Navbar/NavbarSlider.stories.mdx

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

* Tweaks navlinks tokens

* Trigger CI

* Removes sign-in tokens

* Tweaks border color token

* Update src/components/common/Navbar/NavLinks.stories.mdx

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

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

vercel bot commented Jul 1, 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 1, 2022 at 5:51PM (UTC)

@eduardoformiga eduardoformiga added Documentation Improvements or additions to documentation Features New feature or request labels Jul 1, 2022
@vtex-sites
Copy link

vtex-sites bot commented Jul 1, 2022

Preview is ready

This pull request generated a Preview

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

@vtex-sites
Copy link

vtex-sites bot commented Jul 1, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 8909b7b

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.

Looking the same as NextJS Store :)

@eduardoformiga eduardoformiga merged commit 8909b7b into main Jul 1, 2022
@eduardoformiga eduardoformiga deleted the feat/theming-navbar-fsss-377 branch July 1, 2022 19:18
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