From bb7a7eef219e2fdc36e139d9292808422954cdd8 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 000000000000..5366b730c69c --- /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 13c6a8ab9061..19a1b60d4700 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 33d0562e4770..608ca582edfb 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)