Skip to content

[Skeleton] Height of text variant does not match given font-size #49050

Description

@dtrenz

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/material-ui/react-skeleton/#inferring-dimensions
Image

Current behavior

The height of the Skeleton is less than the given font-size. It appears to be transformed/scaled down.

Expected behavior

I expected the Skeleton's height to equal the given font-size. Ideally, the Skeleton would take up as much vertical space as the line-height, but display the gray rectangle at a height equivalent to the font-size.

Search keywords: Skeleton text size

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions