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

fix(SegmentedControl): explicitly set the type attribute for SegmentedControl.Button #4640

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

joshblack
Copy link
Member

Closes https://github.com/github/primer/issues/3308

Changelog

New

Changed

  • Explicitly set the type attribute of the SegmentedControl.Button component to "button" to prevent automatic submission in form elements

Removed

Rollout strategy

  • Minor release

Testing & Reviewing

  • Verify that the SegmentedControl.Button component renders a <button> element with type="button"

@joshblack joshblack requested a review from a team as a code owner June 3, 2024 22:01
@joshblack joshblack requested a review from pksjce June 3, 2024 22:01
Copy link

changeset-bot bot commented Jun 3, 2024

🦋 Changeset detected

Latest commit: 44dd91b

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

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

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

Copy link
Contributor

github-actions bot commented Jun 3, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 89.43 KB (-0.02% 🔽)
packages/react/dist/browser.umd.js 89.64 KB (-0.12% 🔽)

Copy link
Member

@broccolinisoup broccolinisoup left a comment

Choose a reason for hiding this comment

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

We just need a changeset but the PR is looking great!

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