Skip to content

feat(badges): update to new SHINE visuals - part 2 - #2082

Merged
mukunku merged 29 commits into
betafrom
SPARK-113/badges-part-two
Dec 12, 2025
Merged

feat(badges): update to new SHINE visuals - part 2#2082
mukunku merged 29 commits into
betafrom
SPARK-113/badges-part-two

Conversation

@giamir

@giamir giamir commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

SPARK-113

This PR updates the remainder of the badges to the new SHINE visuals. It also clean up the related svelte component api.

Tip use the filter feature of GH to get a better diff experience
Screenshot 2025-12-04 at 17 03 19

@changeset-bot

changeset-bot Bot commented Nov 28, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 400a890

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@giamir
giamir changed the base branch from develop to beta November 28, 2025 14:59
@netlify

netlify Bot commented Nov 28, 2025

Copy link
Copy Markdown

Deploy Preview for stacks-svelte ready!

Name Link
🔨 Latest commit 400a890
🔍 Latest deploy log https://app.netlify.com/projects/stacks-svelte/deploys/693c5e6964052800083da60d
😎 Deploy Preview https://deploy-preview-2082--stacks-svelte.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 28, 2025

Copy link
Copy Markdown

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 400a890
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/693c5e69a986040008610c4a
😎 Deploy Preview https://deploy-preview-2082--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CGuindon

Copy link
Copy Markdown
Collaborator

Structure looks great — we would be deprecating Icon and Number count sections so you can get rid of those. I'll add notes to the Mapping section in Figma for that. @giamir

@giamir giamir changed the title feat(badges): update badges to new SHINE visuals - part 2 feat(badges): update to new SHINE visuals - part 2 Dec 2, 2025
@giamir
giamir marked this pull request as ready for review December 4, 2025 16:01
@mukunku

mukunku commented Dec 4, 2025

Copy link
Copy Markdown
Collaborator

Code changes overall look good to me. Noticed a couple things though, let me know what you think:

  • The Sizes example and code sample don't match (It's not just the colors, the sizes are all the same as well)
  • Should we apply some negative margin (-1px, -2px) on icons to better align them with the text inside the badges?
    image
  • Noticed a state option in the type dropdown in Svelte which I think shouldn't be there?

@giamir

giamir commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

The Sizes example and code sample don't match (It's not just the colors, the sizes are all the same as well)

Good catch I have updated that now.

Should we apply some negative margin (-1px, -2px) on icons to better align them with the text inside the badges?

This is an OS specific issue similar to what we had for the activity indicator component. I don't have that in macos so adding a negative margins will make it look odd in mac. I am honestly unsure how to mitigate that. Maybe for now we can merge it as is and we can have a follow up ticket to investigate further. We could probably play around with the line-height. I don't think using margins will cut it.

Noticed a state option in the type dropdown in Svelte which I think shouldn't be there?

That's how the API currently works.
You need to specify that badge is of type="state" otherwise the state prop is ignored.

@mukunku mukunku left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

Regarding the negative margin for icons: since we have an upcoming change to adjust line heights probably best to leave it for later as you said 👍🏾

@CGuindon CGuindon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. I think there are sizing tweaks missing for the s-badge__squared variants for lg and sm. Looks like the square and icon don't change so the square is either too small or too big when the badge changes size.
Screenshot 2025-12-05 at 4 29 30 PM
  1. For the icon badges, we should have 4px padding between the icon and the text label and 6px on the right of the text (most icons don't go to the edge of the container so I reduced the space there to make it more visually balanced in most icon cases). Looks like it's 6px on both sides right now. (purple gutter and far right green padding side)
Screenshot 2025-12-05 at 4 32 06 PM
  1. For the Squared variant (not for important modifyer, just regular), we should add an outline in HC mode around the square (the background colors because the same so we loose the box effect and they just look like non-squared badges).
Screenshot 2025-12-05 at 4 38 24 PM Screenshot 2025-12-05 at 4 38 20 PM Screenshot 2025-12-05 at 4 40 24 PM
  1. Feels weird that there's an empty option in the sizes (but maybe that's something we need to live with with storybook for the "default" size?
Screenshot 2025-12-05 at 4 41 22 PM

@CGuindon

CGuindon commented Dec 6, 2025

Copy link
Copy Markdown
Collaborator

tagging @dancormier since Giarmir is out — found a few things above

@mukunku
mukunku requested a review from CGuindon December 12, 2025 17:34
@mukunku

mukunku commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

This is ready for re-review now 🙏🏾

@CGuindon CGuindon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Changes look good, the only thing I'm finding struggling with is the order of the size examples for each type. I know our default size makes sense to put first but it looks really weird to have default, small then large in order and all the heights looks different. Can we order them to have small, default then large? Makes it easier to see the difference. (in Stacks Classic docs)

@CGuindon

Copy link
Copy Markdown
Collaborator

moot point about the sizes if they'll be removed from docs — but any areas where you keep all three, I would order them from smallest to largest size (not mixed)

@mukunku
mukunku enabled auto-merge (squash) December 12, 2025 18:31
@mukunku
mukunku disabled auto-merge December 12, 2025 18:32
@mukunku
mukunku enabled auto-merge (squash) December 12, 2025 18:34
@mukunku
mukunku merged commit 8ed0cea into beta Dec 12, 2025
18 checks passed
@mukunku
mukunku deleted the SPARK-113/badges-part-two branch December 12, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants