Skip to content

[system] Using responsiveFontSizes results in inconsistency between <Typography> and <Box> Component #17504

@Skaronator

Description

@Skaronator
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

A Typography component with Variant h4 doesn't match a Box component with fontSize h4

image

Expected Behavior 🤔

A Typography component with Variant h4 should match a Box component with fontSize h4
image

Steps to Reproduce 🕹

Example without Responsive Font: https://codesandbox.io/s/create-react-app-with-typescript-cujk5
Example with Responsive Font: https://codesandbox.io/s/create-react-app-with-typescript-jnw6x

Context 🔦

Not sure if this is a bug or it should work this way. Currently moving some components from Typography to the Box component and noticed this inconsistency.

Your Environment 🌎

Tech Version
Material-UI v4.4.2
React 16.9.0
Browser Chrome 75
TypeScript 3.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions