Skip to content

Button content grid cells are equal #1979

Description

@dusave

Describe the bug
With version 35.x, Buttons have a new content grid, containing spots for leading and trailing icons along with the content of the button. The issue is that the columns are all 1fr by default, giving much more space to the icon cells than they need whilst compressing the content cell.

To Reproduce
Steps to reproduce the behavior:

  1. Create a button with leading and/or trailing icons, along with content
  2. See error

image

Expected behavior
Grid cells should be gridTemplateColumns: "min-content 1fr min-content"
image

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions