Skip to content

chore(button): update button component to use strings for badges#2261

Open
dancormier wants to merge 6 commits intomainfrom
spark-41/update-button-component-to-use-strings-for-badges
Open

chore(button): update button component to use strings for badges#2261
dancormier wants to merge 6 commits intomainfrom
spark-41/update-button-component-to-use-strings-for-badges

Conversation

@dancormier
Copy link
Copy Markdown
Contributor

Summary

Updates the Stacks Svelte Button badge prop to accept a numeric string instead of a snippet.

Related Issues

STACKS-812
Original PR #2195

Changes

  • Changes Button badge typing from Snippet to numeric string template type.
  • Renders badge text directly instead of rendering a snippet.
  • Updates Button stories and tests for the string badge API.
  • Adds a patch changeset for @stackoverflow/stacks-svelte.

Testing

Not run; this PR recreates the previously closed branch against main without local code changes.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 1, 2026

🦋 Changeset detected

Latest commit: 7429df5

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

@netlify
Copy link
Copy Markdown

netlify Bot commented May 1, 2026

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 7429df5
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/69f5229134d4aa0008b7e02b
😎 Deploy Preview https://deploy-preview-2261--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.

@dancormier dancormier requested a review from ttaylor-stack May 1, 2026 22:01
@dancormier dancormier marked this pull request as ready for review May 1, 2026 22:04
@dancormier dancormier requested a review from a team as a code owner May 1, 2026 22:04
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.

2 participants