Skip to content

Commit

Permalink
update rtlValue for theme scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Nov 8, 2024
1 parent 9d354ba commit d3315b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-system/src/ThemeProvider/ThemeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function ThemeProvider(props) {

const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
const rtlValue = engineTheme.direction === 'rtl';
const rtlValue = (themeId ? engineTheme[themeId] : engineTheme).direction === 'rtl';
return (
<MuiThemeProvider theme={privateTheme}>
<StyledEngineThemeContext.Provider value={engineTheme}>
Expand Down

0 comments on commit d3315b7

Please sign in to comment.