Skip to content

Commit

Permalink
fix overriding inherit font properties with the sx prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Mar 10, 2023
1 parent f6532ae commit 224fdaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mui-system/src/styleFunctionSx/styleFunctionSx.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export function unstable_createStyleFunctionSx() {
return null;
}

if (themeKey === 'typography' && val === 'inherit') {
return { [prop]: val };
}

const themeMapping = getPath(theme, themeKey) || {};

if (style) {
Expand Down

0 comments on commit 224fdaa

Please sign in to comment.