Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Chore: Rename Badge variants #381

Merged
merged 3 commits into from
Mar 11, 2022
Merged

Conversation

hellofanny
Copy link
Contributor

@hellofanny hellofanny commented Mar 10, 2022

What's the purpose of this pull request?

To not compromise the semantic meaning of Badge variants usage, I suggest renaming the variants with a general purpose.

BadgeVariants = 'neutral' | 'info' | 'highlighted'

For the product card context, the previous options ('outOfStock' | 'new' | 'recommended' | 'neutral') suit very well . But we are also using the Badge in different contexts such as CartSidebar, Filter, Suggestions.

How does it work?

  • Nothing changes visually.

  • Some examples of current use:

Badge variant="neutral"

ProductCard - out of stock Filter item quantity
image Filter item quantity

Badge variant="info"

CartSidebar - total of item in the cart Top Search - order
image image

How to test it?

References

Checklist

You may erase this after checking them all ;)

  • CHANGELOG entry added

@netlify
Copy link

netlify bot commented Mar 10, 2022

✔️ Deploy Preview for basestore ready!

🔨 Explore the source changes: 49880a1

🔍 Inspect the deploy log: https://app.netlify.com/sites/basestore/deploys/622b6951a629fd0009914985

😎 Browse the preview: https://deploy-preview-381--basestore.netlify.app

@vtex-sites
Copy link

vtex-sites bot commented Mar 10, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-381--base.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit 0924deb

@hellofanny hellofanny self-assigned this Mar 10, 2022
@gatsby-cloud
Copy link

gatsby-cloud bot commented Mar 10, 2022

Gatsby Cloud Build Report

basestore

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 8m

Performance

Lighthouse report

Metric Score
Performance 💚 94
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 93

🔗 View full report

Copy link
Contributor

@filipewl filipewl left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Good Job! ✨

Copy link
Contributor

@ArthurTriis1 ArthurTriis1 left a comment

Choose a reason for hiding this comment

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

Good!

@hellofanny hellofanny requested a review from sergiofontes March 11, 2022 15:02
@hellofanny hellofanny merged commit 0924deb into master Mar 11, 2022
@hellofanny hellofanny deleted the chore/fsss-210-badge-variants branch March 11, 2022 16:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants