Skip to content

Remove MIN width for the button by default #9941

Description

@ek-so

Context

From Slack discussion (#eui, 21 Aug 2026).

EUI buttons currently have a min-width by default. In tight layouts this wastes space for little usability gain (icon-only buttons already cover small click targets). Split buttons are a common example.

The original reason for min-width: unified search (runsearchrefreshcancel) — keeping width stable so the UI doesn’t jump when the label changes.

Decision

Change the default for minWidth to false. Callers opt in when they need a stable width (e.g. label/state changes that would otherwise cause layout jump). This number is up to the consumer.

What to do

  • Flip EuiButton minWidth default to false
  • Keep minWidth as an opt-in for cases that need it (unified search is the known example)
  • Check tight-layout consumers that already suffer from the current default (Streams, Workflows, split buttons were called out)
  • On Kibana side, check if Discover and Dashbaords buttons opt in to use min-width not to break the layout

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions