From 2d92914aea6027c4be4676344f2fb3a49a0d9367 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 3 Oct 2024 23:43:01 +0000 Subject: [PATCH] Move Avatar feature flag from staff to ga --- e2e/components/Avatar.test.ts | 16 ++++++++-------- packages/react/src/Avatar/Avatar.tsx | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e/components/Avatar.test.ts b/e2e/components/Avatar.test.ts index 3fd9ec03779..e739d794124 100644 --- a/e2e/components/Avatar.test.ts +++ b/e2e/components/Avatar.test.ts @@ -13,7 +13,7 @@ test.describe('Avatar', () => { id: 'components-avatar--default', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) @@ -26,7 +26,7 @@ test.describe('Avatar', () => { id: 'components-avatar--default', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) await expect(page).toHaveNoViolations({ @@ -49,7 +49,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--size', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) @@ -62,7 +62,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--size', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) await expect(page).toHaveNoViolations({ @@ -85,7 +85,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--size-responsive', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) @@ -98,7 +98,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--size-responsive', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) await expect(page).toHaveNoViolations({ @@ -121,7 +121,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--square', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) @@ -134,7 +134,7 @@ test.describe('Avatar', () => { id: 'components-avatar-features--square', globals: { colorScheme: theme, - primer_react_css_modules_staff: enabled, + primer_react_css_modules_ga: enabled, }, }) await expect(page).toHaveNoViolations({ diff --git a/packages/react/src/Avatar/Avatar.tsx b/packages/react/src/Avatar/Avatar.tsx index 79d7a1dfefb..4f5f066a147 100644 --- a/packages/react/src/Avatar/Avatar.tsx +++ b/packages/react/src/Avatar/Avatar.tsx @@ -48,7 +48,7 @@ const Avatar = React.forwardRef(function Avatar( {alt = '', size = DEFAULT_AVATAR_SIZE, square = false, sx: sxProp = defaultSxProp, className, ...rest}, ref, ) { - const enabled = useFeatureFlag('primer_react_css_modules_staff') + const enabled = useFeatureFlag('primer_react_css_modules_ga') const isResponsive = isResponsiveValue(size) const avatarSx = isResponsive ? merge(