Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c1ea6cf

Browse filesBrowse files
authored
chore(TreeView): Remove the CSS modules feature flag from the TreeView component (#5934)
1 parent 0ea045a commit c1ea6cf
Copy full SHA for c1ea6cf

File tree

3 files changed

+29
-353
lines changed
Filter options

3 files changed

+29
-353
lines changed

‎.changeset/thick-teams-taste.md

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: packages/react/src/TreeView/TreeView.test.tsx
-13Lines changed: 0 additions & 13 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.