Skip to content

Commit

Permalink
Merge pull request #1942 from okta/ee/heading-family
Browse files Browse the repository at this point in the history
fix(odyssey-react-mui): ensure headings pick up TypographyFamilyHeading
  • Loading branch information
edburyenegren-okta authored Aug 22, 2023
2 parents 58611b2 + e2b2c59 commit d8fc766
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/odyssey-react-mui/src/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Typography = ({
if (variant === "body") {
return "p";
} else if (variant === "subordinate" || variant === "support") {
return "h6";
return "p";
} else {
return variant;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/odyssey-react-mui/src/theme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2278,8 +2278,6 @@ export const components = (
},
MuiTypography: {
defaultProps: {
fontFamily:
"'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
variantMapping: {
h1: "h1",
h2: "h2",
Expand Down

0 comments on commit d8fc766

Please sign in to comment.