Skip to content

Commit

Permalink
Move component feature flag from staff to ga (#5591)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan authored Jan 23, 2025
1 parent db6c360 commit 12f1af7
Show file tree
Hide file tree
Showing 22 changed files with 66 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-gorillas-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Popover CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/dirty-moles-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Textarea CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/few-rockets-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move UnstyledTextInput CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/flat-candles-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move SelectPanel2 CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/large-socks-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Breadcrumbs CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/late-humans-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move ProgressBar CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/lucky-snakes-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Dialog CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/pink-bats-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Timeline CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/tough-tigers-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move DialogV1 CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/tricky-avocados-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move TreeView CSS modules feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/wicked-zoos-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move CheckboxOrRadioGroup CSS modules feature flag from staff to ga
2 changes: 1 addition & 1 deletion packages/react/src/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {useFeatureFlag} from '../FeatureFlags'
import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic'

const SELECTED_CLASS = 'selected'
const CSS_MODULES_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FLAG = 'primer_react_css_modules_ga'

const Wrapper = toggleStyledComponent(
CSS_MODULES_FLAG,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export interface DialogHeaderProps extends DialogProps {
dialogDescriptionId: string
}

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

const Backdrop = toggleStyledComponent(
CSS_MODULES_FEATURE_FLAG,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/DialogV1/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {useFeatureFlag} from '../FeatureFlags'
import {clsx} from 'clsx'
import classes from './Dialog.module.css'

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

// Dialog v1
const noop = () => null
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type StyledPopoverProps = {
open?: boolean
} & SxProp

const CSS_MODULES_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FLAG = 'primer_react_css_modules_ga'

const StyledPopover = styled.div.attrs<StyledPopoverProps>(({className, caret = 'top'}) => {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const shimmer = keyframes`
to { mask-position: 0%; }
`

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

const ProgressItem = toggleStyledComponent(
CSS_MODULES_FEATURE_FLAG,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type TextareaProps = {
} & TextareaHTMLAttributes<HTMLTextAreaElement> &
SxProp

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

const StyledTextarea = toggleStyledComponent(
CSS_MODULES_FEATURE_FLAG,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {useFeatureFlag} from '../FeatureFlags'
import classes from './Timeline.module.css'
import {defaultSxProp} from '../utils/defaultSxProp'

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

type StyledTimelineProps = {clipSidebar?: boolean; className?: string} & SxProp

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/TreeView/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {SkeletonText} from '../experimental/Skeleton/SkeletonText'
import {toggleStyledComponent} from '../internal/utils/toggleStyledComponent'
import {useFeatureFlag} from '../FeatureFlags'

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

// ----------------------------------------------------------------------------
// Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {useFeatureFlag} from '../../FeatureFlags'

import classes from './SelectPanel.module.css'

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

const SelectPanelContext = React.createContext<{
title: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CSS_MODULES_FLAG = 'primer_react_css_modules_staff'
export const CSS_MODULES_FLAG = 'primer_react_css_modules_ga'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {useFeatureFlag} from '../../FeatureFlags'
import styles from './UnstyledTextInput.module.css'
import {clsx} from 'clsx'

export const TEXT_INPUT_CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'
export const TEXT_INPUT_CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_ga'

type ToggledUnstyledTextInputProps = React.ComponentPropsWithoutRef<'input'> & SxProp

Expand Down

0 comments on commit 12f1af7

Please sign in to comment.