Skip to content

Remove MIN width for the button by default #9941

Closed

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 (run → search → refresh → cancel) — 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

  1. Neilblaze commented on Aug 22, 2026

    @Neilblaze
    Contributor

    @ek-so Is this internal, or up for grabs? If it's up for grabs, I'd love to open a PR. Thanks! :)

  2. ek-so commented on Aug 24, 2026

    @ek-so
    ContributorAuthor

    Hey @Neilblaze, thank you, I think for the EUI part the contribution would be welcomed!

  3. mgadewoll commented on Aug 24, 2026

    @mgadewoll
    Contributor

    ℹ️ Fyi, we only take contributions once we internally decided to add the "help wanted" label (as mentioned in our contribution wiki)

  4. Neilblaze commented on Aug 24, 2026

    @Neilblaze
    Contributor

    ℹ️ Fyi, we only take contributions once we internally decided to add the "help wanted" label (as mentioned in our contribution wiki)

    @mgadewoll Oops, my bad! I wasn't aware of this... I just ended up opening the PR for #9941. What should I do now? 😓

  5. mgadewoll commented on Aug 24, 2026

    @mgadewoll
    Contributor

    @Neilblaze There are currently more changes ongoing for buttons internally and we will handle the changes for this issue internally as well. Unfortunately that means that your PR will be closed.
    If you'd like to contribute again, we encourage you to pick an issue with the "help wanted" label.

  6. Neilblaze commented on Aug 24, 2026

    @Neilblaze
    Contributor

    Sure thing, thanks!

  7. ek-so commented on Aug 24, 2026

    @ek-so
    ContributorAuthor

    Thanks @mgadewoll! And sorry @Neilblaze, I wasn't aware of that either 😐

  8. self-assigned this
    on Sep 8, 2026
  9. ryankeairns commented on Sep 23, 2026

    @ryankeairns
    Contributor

    @mgadewoll can we close this one?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions