From 0b89fc040e05a61de4a686d3054f4cb6d9f32f6d Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Wed, 18 Sep 2024 09:15:21 -0700 Subject: [PATCH] Change the Link component feature flag from primer_react_css_modules_staff to primer_react_css_modules_ga (#4975) * Move Link to ga feature flag * Create dirty-pianos-wash.md --- .changeset/dirty-pianos-wash.md | 5 +++++ e2e/components/Link.test.ts | 4 ++-- packages/react/src/Link/Link.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/dirty-pianos-wash.md diff --git a/.changeset/dirty-pianos-wash.md b/.changeset/dirty-pianos-wash.md new file mode 100644 index 00000000000..5366b730c69 --- /dev/null +++ b/.changeset/dirty-pianos-wash.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Change the Link component feature flag from primer_react_css_modules_staff to primer_react_css_modules_ga diff --git a/e2e/components/Link.test.ts b/e2e/components/Link.test.ts index 13c6a8ab906..19a1b60d470 100644 --- a/e2e/components/Link.test.ts +++ b/e2e/components/Link.test.ts @@ -32,7 +32,7 @@ test.describe('Link', () => { globals: { colorScheme: theme, featureFlags: { - primer_react_css_modules_staff: true, + primer_react_css_modules_ga: true, }, }, }) @@ -55,7 +55,7 @@ test.describe('Link', () => { globals: { colorScheme: theme, featureFlags: { - primer_react_css_modules_staff: true, + primer_react_css_modules_ga: true, }, }, }) diff --git a/packages/react/src/Link/Link.tsx b/packages/react/src/Link/Link.tsx index 33d0562e477..608ca582edf 100644 --- a/packages/react/src/Link/Link.tsx +++ b/packages/react/src/Link/Link.tsx @@ -62,7 +62,7 @@ const StyledLink = styled.a` ` const Link = forwardRef(({as: Component = 'a', className, inline, underline, ...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)