From 6bf3e9efbc14edbdfc844b6edf9c6299d5b29895 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 6 Dec 2024 12:00:56 -0800 Subject: [PATCH] chore(Radio): Move Radio component css module feature flag to ga (#5377) * Move Radio component to ga * Create large-cars-repeat.md --- .changeset/large-cars-repeat.md | 5 +++++ packages/react/src/Radio/Radio.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/large-cars-repeat.md diff --git a/.changeset/large-cars-repeat.md b/.changeset/large-cars-repeat.md new file mode 100644 index 00000000000..3dead20f9ba --- /dev/null +++ b/.changeset/large-cars-repeat.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Move Radio component css module feature flag to ga diff --git a/packages/react/src/Radio/Radio.tsx b/packages/react/src/Radio/Radio.tsx index f686c1f8233..33edae3fd17 100644 --- a/packages/react/src/Radio/Radio.tsx +++ b/packages/react/src/Radio/Radio.tsx @@ -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}; @@ -103,7 +103,7 @@ const Radio = React.forwardRef( 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 = e => { radioGroupContext?.onChange && radioGroupContext.onChange(e) onChange && onChange(e)