Skip to content

Media & Text block shouldn't default to large font size - especially when font sizes are disabled #21126

@smerriman

Description

@smerriman

Using a theme that contains:

add_theme_support('disable-custom-font-sizes'); add_theme_support('editor-font-sizes',array());

When a Media & Text block is added, the default paragraph for the content has a has-large-font-size class. While it doesn't appear large in the backend, it still appears large in the frontend.

It's possible that the above code should remove the default styling of has-large-font-size from the frontend like it does in the backend - but regardless of that, the class shouldn't be added to the paragraph tag.

Desktop (please complete the following information):

  • OS: Windows 7 (but applies to all)
  • Browser: Firefox (but applies to all)

WordPress 5.3.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Media & TextAffects the Media & Text Block[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