Skip to content

Button content grid cells are equal #1979

@dusave

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions