Skip to content

SegmentedButton - sx props do not apply #2286

@lesliecdubs

Description

@lesliecdubs

Describe the bug
As originally reported in #2267:

I'd like to be able to specify the SegmentedControl.Button as a small size as I can with other buttons
size is not a supported prop of SegmentedControl.Button - so I tried setting the fontSize through sx prop and it still has no effect.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://primer.style/react/SegmentedControl
  2. Note that size is not a supported prop for the Button
  3. Add sx={{fontSize: 0}} to one of the buttons
  4. Notice that nothing changes

Expected behavior
sx prop should apply to SegmentedControl.Button.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 104

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions