Skip to content

Commit

Permalink
chore(ButtonGroup): Move ButtonGroup CSS module feature flag from sta…
Browse files Browse the repository at this point in the history
…ff to ga (#5281)

* Move ButtonGroup to ga feature flag

* Create polite-ligers-exercise.md
  • Loading branch information
jonrohan authored Nov 14, 2024
1 parent 8853f5f commit b8e138e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-ligers-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

chore(ButtonGroup): Move ButtonGroup CSS module feature flag from staff to ga
4 changes: 2 additions & 2 deletions packages/react/src/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {useProvidedRefOrCreate} from '../hooks'
import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic'

const StyledButtonGroup = toggleStyledComponent(
'primer_react_css_modules_staff',
'primer_react_css_modules_ga',
'div',
styled.div`
display: inline-flex;
Expand Down Expand Up @@ -82,7 +82,7 @@ const ButtonGroup = React.forwardRef<HTMLElement, ButtonGroupProps>(function But
{children, className, role, ...rest},
forwardRef,
) {
const enabled = useFeatureFlag('primer_react_css_modules_staff')
const enabled = useFeatureFlag('primer_react_css_modules_ga')
const buttonRef = useProvidedRefOrCreate(forwardRef as React.RefObject<HTMLDivElement>)

useFocusZone({
Expand Down

0 comments on commit b8e138e

Please sign in to comment.