Skip to content

Commit fd38348

Browse files
committed
Temporary fix for MUI bug not taking into account the unit
1 parent 80cad1d commit fd38348

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mui.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ export function getMuiDsfrThemeOptions(params: { isDark: boolean }): ThemeOption
2626
"borderRadius": 0
2727
},
2828
"breakpoints": {
29-
"unit": breakpointValuesUnit,
30-
"values": breakpointValues
29+
//"unit": breakpointValuesUnit,
30+
"unit": "px",
31+
"values": Object.fromEntries(
32+
Object.entries(breakpointValues).map(([key, value]) => [key, value * 16])
33+
) as any
3134
},
3235
"palette": {
3336
"mode": isDark ? "dark" : "light",

0 commit comments

Comments
 (0)