Skip to content

Commit 3ee082c

Browse files
Merge branch 'main' into hectahertz/fix-padding-selectpanel-groups
2 parents e85e0e3 + c1ea6cf commit 3ee082c

File tree

3 files changed

+29
-353
lines changed

3 files changed

+29
-353
lines changed

.changeset/thick-teams-taste.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': minor
3+
---
4+
5+
Remove the CSS modules feature flag from the TreeView component

packages/react/src/TreeView/TreeView.test.tsx

-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React from 'react'
44
import {ThemeProvider} from '../ThemeProvider'
55
import type {SubTreeState} from './TreeView'
66
import {TreeView} from './TreeView'
7-
import {FeatureFlags} from '../FeatureFlags'
87

98
jest.useFakeTimers()
109

@@ -1651,20 +1650,8 @@ describe('CSS Module Migration', () => {
16511650
<TreeView.Item id="item-3">Item 3</TreeView.Item>
16521651
</TreeView>
16531652
)
1654-
const FeatureFlagElement = () => {
1655-
return (
1656-
<FeatureFlags
1657-
flags={{
1658-
primer_react_css_modules_ga: true,
1659-
}}
1660-
>
1661-
<TreeViewTestComponent />
1662-
</FeatureFlags>
1663-
)
1664-
}
16651653

16661654
// Testing on the second child element because the first child element is visually hidden
16671655
expect(render(<TreeViewTestComponent />).container.children[1]).toHaveClass('test-class-name')
1668-
expect(render(<FeatureFlagElement />).container.children[1]).toHaveClass('test-class-name')
16691656
})
16701657
})

0 commit comments

Comments
 (0)