Skip to content

Commit

Permalink
chore(Radio): Move Radio component from team to staff flag (#5288)
Browse files Browse the repository at this point in the history
* Move Radio to staff feature flag

* Create curly-bikes-burn.md
  • Loading branch information
jonrohan authored Nov 14, 2024
1 parent cc876d9 commit 9d004d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-bikes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Radio component from team to staff flag
4 changes: 2 additions & 2 deletions packages/react/src/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type RadioProps = {
SxProp

const StyledRadio = toggleStyledComponent(
'primer_react_css_modules_team',
'primer_react_css_modules_staff',
'input',
styled.input`
${sharedCheckboxAndRadioStyles};
Expand Down Expand Up @@ -103,7 +103,7 @@ const Radio = React.forwardRef<HTMLInputElement, RadioProps>(
ref,
): ReactElement => {
const radioGroupContext = useContext(RadioGroupContext)
const enabled = useFeatureFlag('primer_react_css_modules_team')
const enabled = useFeatureFlag('primer_react_css_modules_staff')
const handleOnChange: ChangeEventHandler<HTMLInputElement> = e => {
radioGroupContext?.onChange && radioGroupContext.onChange(e)
onChange && onChange(e)
Expand Down

0 comments on commit 9d004d0

Please sign in to comment.