Skip to content

Commit 82520ff

Browse files
committed
Fix icon colors MUI
1 parent 86057ce commit 82520ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"@emotion/react": "^11.10.4",
7070
"@emotion/styled": "^11.10.4",
7171
"@gouvfr/dsfr": "1.8.5",
72+
"@mui/icons-material": "^5.11.0",
7273
"@mui/material": "^5.11.0",
7374
"@storybook/addon-actions": "^6.5.13",
7475
"@storybook/addon-essentials": "^6.5.13",

src/mui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function getMuiDsfrThemeOptions(params: { isDark: boolean }): ThemeOption
171171
},
172172
"MuiSvgIcon": {
173173
"styleOverrides": {
174-
"root": ({ theme }) => ({
174+
"colorPrimary": ({ theme }) => ({
175175
"color": theme.palette.text.primary
176176
})
177177
}

0 commit comments

Comments
 (0)