Skip to content

[EuiPanel] Discuss removing translations #9681

Closed

Description

@nickofthyme

With the new borealis changes we decided to remove all pointless translations on buttons.

However, this is still being done on clickable EuiPanels (aka glorified buttons) and it makes the UI feel glitchy when you hover over it as the hover element moves away from the cursor on hover! This was discussed at length in #2184.

transform: translateY(-2px);

Zight.Recording.2026-05-27.at.02.39.05.PM.mp4
Zight.Recording.2026-05-27.at.02.08.07.PM.mp4

I'd like to open this to discuss if this 2px translation adds value and understand the rational behind this design choice?

This can also create unnecessary issues with overflow, see #2184 (comment).

Clickable EuiPanels are used more commonly than just a few showcase elements where it's now used commonly as a complex button.

Alternatively, maybe we could improve the styles to hover on the parent or the button so the translation does not affect the hover state.

Activity

  1. added
    design decision
    on May 27, 2026
  2. JasonStoltz commented on Jun 1, 2026

    @JasonStoltz
    Contributor

    I did this in a draft PR so folks can see what it looks like in a storybook. I think this implements what you're asking for: #9702

  3. JasonStoltz commented on Jun 23, 2026

    @JasonStoltz
    Contributor

    @JoseLuisGJ @ek-so Are you good with removing the hover animation from clickable panels?

  4. self-assigned this
    on Jun 23, 2026
  5. ek-so commented on Jun 24, 2026

    @ek-so
    Contributor

    Thanks @JasonStoltz! I would be personally in general up for that. A couple of notes:

    • The effect was introduced because there was a need to distinguish hover state for, say, colored panels. I doubt there are a lot of such use cases, so I don't think it's a blocker for removing this effect for now, but ideally we keep that in mind. At some point I did explorations here on how we can solve this problem for all panels, using just colors and shadows, and outlined verions... maybe smth to plan for later.
    • Currently on the dashboards page in particular there is a problem, that outlined panel gets the shadow on hover, and if you look closely — it results in the second outline, visually (explanation here). Ideally, in order to avoid this situation, we would introduce the aforementioned states for every panel type, so that the users don't have to think what effect they apply if they want panel to be interactive.
  6. removed
    design decision
    on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions