close
Skip to content

Large font sizes break the appearance of the preset sizes dropdown #25862

@kjellr

Description

@kjellr

Describe the bug

If a theme provides very large font sizes as presets, it breaks the appearance of the preset size dropdown.

To reproduce
Steps to reproduce the behavior:

  1. Use a theme that provides a large font size (96, for example).
  2. Use the preset sizes dropdown.
  3. Notice the overflow.

Expected behavior

Font size representations there should be capped to a size that prevents them from overflowing their container.

Screenshots

Screen Shot 2020-10-06 at 10 04 54 AM

Gutenberg 9.1.0
Discovered while building the Twenty Twenty One Theme.

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions