Skip to content

[EuiListGroup] Adding showTooltips to items affects extraAction button alignment #9519

Description

@i-a-n

Describe the bug
when you add a tooltip to EuiListGroupItem, for instance by adding the showTooltips prop on <EuiListGroup />, any extraAction icons become misaligned vertically.

see this codesandbox for replicating the bug (borders added for visibility):

before/after adding showTooltips
Image Image

Minimum reproducible sandbox

codesandbox

Additional context (Optional)
this likely is happening because tooltips inject a <span> between the <li> and <button> elements, which overrides the align-items: center property from the <li>. by adding align-items: center to the tooltip <span>, it aligns as expected.

just opening this to track; I can open a PR if the team doesnt' have the bandwidth to fix right away 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️ needs validationFor bugs that need confirmation as to whether they're reproducible

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions