Skip to content

Commit

Permalink
fix(SegmentedControl): explicitly set the type attribute for `Segme…
Browse files Browse the repository at this point in the history
…ntedControl.Button` (#4640)

* Update SegmentedControlButton.tsx

* Create few-paws-confess.md
  • Loading branch information
joshblack authored Jun 5, 2024
1 parent cacc21a commit 6cbbc49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-paws-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Explicitly set the `type` attribute for `SegmentedControl.Button`
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const SegmentedControlButton: React.FC<React.PropsWithChildren<SegmentedControlB
<SegmentedControlButtonStyled
aria-current={selected}
sx={getSegmentedControlButtonStyles({selected, children})}
type="button"
{...rest}
>
<span className="segmentedControl-content">
Expand Down

0 comments on commit 6cbbc49

Please sign in to comment.