Skip to content

Commit

Permalink
chore: Move CSS modules team feature flag to staff for Banner, Button…
Browse files Browse the repository at this point in the history
…Group, Checkbox, CounterLabel components (#5063)

* Move from team feature flag to staff feature flag

* Create tame-walls-travel.md
  • Loading branch information
jonrohan authored Oct 8, 2024
1 parent ce14f85 commit 62e0d6e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-walls-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move CSS modules team feature flag to staff for Banner, ButtonGroup, Checkbox, CounterLabel components
2 changes: 1 addition & 1 deletion packages/react/src/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const labels: Record<BannerVariant, string> = {
warning: 'Warning',
}

const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_team'
const CSS_MODULES_FEATURE_FLAG = 'primer_react_css_modules_staff'

export const Banner = React.forwardRef<HTMLElement, BannerProps>(function Banner(
{
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {clsx} from 'clsx'
import {useFeatureFlag} from '../FeatureFlags'

const StyledButtonGroup = toggleStyledComponent(
'primer_react_css_modules_team',
'primer_react_css_modules_staff',
styled.div`
display: inline-flex;
vertical-align: middle;
Expand Down Expand Up @@ -77,7 +77,7 @@ const ButtonGroup = React.forwardRef<HTMLElement, ButtonGroupProps>(function But
{children, className, ...rest},
forwardRef,
) {
const enabled = useFeatureFlag('primer_react_css_modules_team')
const enabled = useFeatureFlag('primer_react_css_modules_staff')
return (
<StyledButtonGroup
ref={forwardRef}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
},
ref,
): ReactElement => {
const enabled = useFeatureFlag('primer_react_css_modules_team')
const enabled = useFeatureFlag('primer_react_css_modules_staff')
const checkboxRef = useProvidedRefOrCreate(ref as React.RefObject<HTMLInputElement>)
const checkboxGroupContext = useContext(CheckboxGroupContext)
const handleOnChange: ChangeEventHandler<HTMLInputElement> = e => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/CounterLabel/CounterLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type CounterLabelProps = React.PropsWithChildren<

const CounterLabel = forwardRef<HTMLSpanElement, CounterLabelProps>(
({scheme = 'secondary', sx = defaultSxProp, className, children, ...rest}, forwardedRef) => {
const enabled = useFeatureFlag('primer_react_css_modules_team')
const enabled = useFeatureFlag('primer_react_css_modules_staff')
const label = <VisuallyHidden>&nbsp;({children})</VisuallyHidden>
const counterProps = {
ref: forwardedRef,
Expand Down

0 comments on commit 62e0d6e

Please sign in to comment.