Skip to content

[EuiListItemLayout] Add hover styles only on interactive items - #9605

Merged
mgadewoll merged 4 commits into
elastic:feat/selectable-ui-enhancementsfrom
mgadewoll:listitemlayout/fix-interactive-styles-appliance
Apr 23, 2026
Merged

mgadewoll merged 4 commits into
elastic:feat/selectable-ui-enhancementsfrom
mgadewoll:listitemlayout/fix-interactive-styles-appliance

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Important

This PR merges into a feature branch

Summary

This PR updates EuiListItemLayout to fix the appliance of hover styles. Initially the styles were always applied, assuming that list items are always interactive or used as option within a listbox.
While not that common, they can also be used as non-interactive list item via EuiListGroup/EuiListGroup and for that we should not apply a hover style if the items are not actually interactive.

API Changes

⚪ No API changes

Screenshots

Before After
Screen.Recording.2026-04-22.at.09.48.39.mov
Screen.Recording.2026-04-22.at.09.48.46.mov

Impact Assessment

Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.

  • 🔴 Breaking changes — What will break? How many usages in Kibana/Cloud UI are impacted?
  • 💅 Visual changes — May impact style overrides; could require visual testing. Explain and estimate impact.
  • 🧪 Test impact — May break functional or snapshot tests (e.g., HTML structure, class names, default values).
  • 🔧 Hard to integrate — If changes require substantial updates to Kibana, please stage the changes and link them here.

Impact level: 🟢 None

Release Readiness

  • Documentation: {link to docs page(s)}
  • Figma: {link to Figma or issue}
  • Migration guide: {steps or link, for breaking/visual changes or deprecations}
  • Adoption plan (new features): {link to issue/doc or outline who will integrate this and where}

QA instructions for reviewer

Checkout the PR (EuiListItemLayout is an internal component and not visible with controls in production storybook) and:

  • verify that EuiListItemLayout with element=li/div without onClick don't have a hover style applied
  • verify that EuiListItemLayout with element=button/a have a hover style applied
  • verify that EuiListItemLayout with element=li/div and an interactive role (e.g. "link" or "button") have a hover style applied

Checklist before marking Ready for Review

Reviewer checklist

  • Approved Impact Assessment — Acceptable to merge given the consumer impact.
  • Approved Release Readiness — Docs, Figma, and migration info are sufficient to ship.

@mgadewoll mgadewoll self-assigned this Apr 22, 2026
@mgadewoll mgadewoll added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Apr 22, 2026
@mgadewoll
mgadewoll force-pushed the feat/selectable-ui-enhancements branch 2 times, most recently from 231d3f8 to 4248364 Compare April 22, 2026 09:00
@mgadewoll
mgadewoll force-pushed the listitemlayout/fix-interactive-styles-appliance branch from 66a5cef to 7bc8e4b Compare April 22, 2026 09:07
@mgadewoll
mgadewoll force-pushed the listitemlayout/fix-interactive-styles-appliance branch from 7bc8e4b to 55c8364 Compare April 22, 2026 09:36
@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll
mgadewoll marked this pull request as ready for review April 22, 2026 10:48
@mgadewoll
mgadewoll requested a review from a team as a code owner April 22, 2026 10:48
@tkajtoch
tkajtoch self-requested a review April 22, 2026 12:55

@tkajtoch tkajtoch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good. I tested the changes locally and can confirm that everything works as expected.

@mgadewoll
mgadewoll merged commit e08343d into elastic:feat/selectable-ui-enhancements Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants