diff --git a/.changeset/pink-lemons-clean.md b/.changeset/pink-lemons-clean.md new file mode 100644 index 00000000000..f144d1577b5 --- /dev/null +++ b/.changeset/pink-lemons-clean.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Move Button CSS module feature flag from staff to ga diff --git a/packages/react/src/Button/ButtonBase.tsx b/packages/react/src/Button/ButtonBase.tsx index 562f6eaa5c1..0a05e1ef6c6 100644 --- a/packages/react/src/Button/ButtonBase.tsx +++ b/packages/react/src/Button/ButtonBase.tsx @@ -70,7 +70,7 @@ const ButtonBase = forwardRef( ...rest } = props - const enabled = useFeatureFlag('primer_react_css_modules_staff') + const enabled = useFeatureFlag('primer_react_css_modules_ga') const innerRef = React.useRef(null) useRefObjectAsForwardedRef(forwardedRef, innerRef) diff --git a/packages/react/src/Button/__tests__/Button.test.tsx b/packages/react/src/Button/__tests__/Button.test.tsx index d1a0fe74ee0..3a5a253ff0e 100644 --- a/packages/react/src/Button/__tests__/Button.test.tsx +++ b/packages/react/src/Button/__tests__/Button.test.tsx @@ -25,6 +25,48 @@ const StatefulLoadingButton = (props: StatefulLoadingButtonProps) => { return - , - ) - expect(container.firstChild).toHaveClass('ButtonBase') - }) - - it('linkbutton should support custom `className` along with default classnames', () => { - const {container} = render( - - Hello - , - ) - expect(container.firstChild).toHaveClass('ButtonBase') - }) - }) })