Description
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
JasonStoltz commentedon Jun 1, 2026
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
JasonStoltz commentedon Jun 23, 2026
@JoseLuisGJ @ek-so Are you good with removing the hover animation from clickable panels?
JasonStoltz commentedon Jun 23, 2026
You can compare the behavior here:
ek-so commentedon Jun 24, 2026
Thanks @JasonStoltz! I would be personally in general up for that. A couple of notes: