Skip to content

Changes to Button display cause white space in text to collapse #3612

Description

@joshblack

Description

A recent change to the styles of the Button component causes white space to collapse when the contents include a mix of text and an element due to usage of display: flex

Steps to reproduce

  1. Head to the button docs

  2. Edit an example to include the markup

    <Button>Default <span>hello</span></Button>
  3. Observe the white space between Default and hello has collapsed

Version

35.27.0

Browser

No response

Additional Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions