close
Skip to content

Button Block Global Styles for Font Family overrides individual block setting. #42398

@Addison-Stavlo

Description

@Addison-Stavlo

On current Gutenberg trunk branch with Twenty-twenty-two theme (reproduced on other themes as well), the Block specific global styles "font family" setting for the Buttons block overrides the individual block inspector settings.

Steps to Reproduce

  • Go to Global Styles -> Blocks -> Button -> Typography. Set a font family.
  • Go to an individual button block and try to set a different font family in the block inspector.
  • See that it does not update and uses the block level global styles setting.

What I would expect:

Where we would expect individual block level settings to override the Global Styles block type setting.

What happens

Global Styles block type settings overrides individual block inspector settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Block] ButtonsAffects the Buttons 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