Skip to content

Commit

Permalink
chore(Radio): Move Radio component css module feature flag to ga (pri…
Browse files Browse the repository at this point in the history
…mer#5377)

* Move Radio component to ga

* Create large-cars-repeat.md
  • Loading branch information
jonrohan authored Dec 6, 2024
1 parent efc5c47 commit 6bf3e9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-cars-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Radio component css module feature flag to ga
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_staff',
'primer_react_css_modules_ga',
'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_staff')
const enabled = useFeatureFlag('primer_react_css_modules_ga')
const handleOnChange: ChangeEventHandler<HTMLInputElement> = e => {
radioGroupContext?.onChange && radioGroupContext.onChange(e)
onChange && onChange(e)
Expand Down

0 comments on commit 6bf3e9e

Please sign in to comment.