diff --git a/.changeset/long-pans-travel.md b/.changeset/long-pans-travel.md new file mode 100644 index 00000000000..d52c9476c0f --- /dev/null +++ b/.changeset/long-pans-travel.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Move Text component feature flag from primer_react_css_modules_staff to primer_react_css_modules_ga diff --git a/e2e/components/Text.test.ts b/e2e/components/Text.test.ts index 283ce45fbb6..e039bac12c4 100644 --- a/e2e/components/Text.test.ts +++ b/e2e/components/Text.test.ts @@ -46,7 +46,7 @@ test.describe('Text', () => { id: story.id, globals: { featureFlags: { - primer_react_css_modules_staff: true, + primer_react_css_modules_ga: true, }, }, }) @@ -60,7 +60,7 @@ test.describe('Text', () => { id: story.id, globals: { featureFlags: { - primer_react_css_modules_staff: false, + primer_react_css_modules_ga: false, }, }, }) @@ -74,7 +74,7 @@ test.describe('Text', () => { id: story.id, globals: { featureFlags: { - primer_react_css_modules_staff: true, + primer_react_css_modules_ga: true, }, }, }) @@ -86,7 +86,7 @@ test.describe('Text', () => { id: story.id, globals: { featureFlags: { - primer_react_css_modules_staff: false, + primer_react_css_modules_ga: false, }, }, }) diff --git a/packages/react/src/Text/Text.tsx b/packages/react/src/Text/Text.tsx index 3deb4f0818a..3f7ee333b97 100644 --- a/packages/react/src/Text/Text.tsx +++ b/packages/react/src/Text/Text.tsx @@ -59,7 +59,7 @@ const StyledText = styled.span` ` const Text = forwardRef(({as: Component = 'span', className, size, weight, ...props}, forwardedRef) => { - const enabled = useFeatureFlag('primer_react_css_modules_staff') + const enabled = useFeatureFlag('primer_react_css_modules_ga') const innerRef = React.useRef(null) useRefObjectAsForwardedRef(forwardedRef, innerRef)