Repository navigation
[EuiAvatar] Ensure tooltip wrapper has correct border-radius - #9697
Merged
mgadewoll merged 4 commits intoJun 1, 2026
Merged
Conversation
- otherwise th tooltip anchor has a larger trigger area and will look different in HCM
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a visual regression introduced when EuiAvatar started using EuiToolTip (replacing the browser title tooltip): the tooltip anchor wrapper now receives the same border-radius as the avatar itself, preventing the wrapper from visually appearing “squarer” than the avatar (notably in forced colors / high contrast scenarios like EuiCommentList).
Changes:
- Add type-based tooltip anchor
border-radiusstyling toEuiAvatarviaEuiToolTipanchorProps. - Refactor avatar styles to centralize
border-radiusvalues and reuse them for both the avatar and tooltip anchor. - Update impacted Jest snapshots and add a changelog entry.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/eui/src/components/avatar/avatar.tsx | Passes tooltip anchor Emotion styles so the wrapper matches the avatar border-radius. |
| packages/eui/src/components/avatar/avatar.styles.ts | Centralizes avatar border-radius values and adds matching tooltip-anchor variants. |
| packages/eui/src/components/avatar/snapshots/avatar.test.tsx.snap | Updates snapshots for the new tooltip anchor wrapper styling classnames. |
| packages/eui/src/components/timeline/snapshots/timeline.test.tsx.snap | Snapshot updates due to EuiAvatar tooltip anchor wrapper classname changes. |
| packages/eui/src/components/timeline/snapshots/timeline_item.test.tsx.snap | Snapshot updates due to EuiAvatar tooltip anchor wrapper classname changes. |
| packages/eui/src/components/comment_list/snapshots/comment_timeline.test.tsx.snap | Snapshot updates due to EuiAvatar tooltip anchor wrapper classname changes. |
| packages/eui/src/components/comment_list/snapshots/comment_event.test.tsx.snap | Snapshot updates due to EuiAvatar tooltip anchor wrapper classname changes. |
| packages/eui/src/components/card/snapshots/card.test.tsx.snap | Snapshot updates due to EuiAvatar tooltip anchor wrapper classname changes. |
| packages/eui/changelogs/upcoming/9697.md | Changelog entry documenting the tooltip wrapper border-radius fix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
💚 Build Succeededcc @mgadewoll |
Collaborator
💚 Build Succeeded
cc @mgadewoll |
mgadewoll
marked this pull request as ready for review
June 1, 2026 13:38
weronikaolejniczak
self-requested a review
June 1, 2026 14:15
JasonStoltz
pushed a commit
to elastic/kibana
that referenced
this pull request
Jun 24, 2026
## Dependency updates `@elastic/eui` - v116.2.0 ⏩ v116.3.1 `@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.0 ## Package updates ### `@elastic/eui` [v116.3.1](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed `EuiTableHeaderCell` and `EuiTableHeaderCellCheckbox` throwing an error in Jest test environments due to static mocking of `useGeneratedHtmlId` by generating a stable, unique key with `uuidv4` ([#9698](elastic/eui#9698)) - Fixed an issue where the tooltip anchor wrapper in `EuiAvatar` did not have the same `border-radius` applied as the avatar itself. ([#9697](elastic/eui#9697)) ### `@elastic/eui` [v116.3.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `EuiBanner` component ([#9673](elastic/eui#9673)) - Replaced native browser `title` attributes with `EuiToolTip` across the following components for consistent tooltips: ([#9643](elastic/eui#9643)) - `EuiAvatar` - `EuiBasicTable` - `EuiBreadcrumbs` - `EuiComboBox` - `EuiDataGrid` - `EuiAutoRefresh` - `EuiSuperDatePicker` - `EuiFieldPassword` - `EuiMarkdownEditor` - `EuiPagination` - `EuiSearchBar` - `EuiSelectable` - `EuiTextTruncate` - Extended `EuiToolTip`'s `display` prop to support `"flex"` ([#9643](elastic/eui#9643)) - Added experimental support for sticky headers in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` ([#9682](elastic/eui#9682)) **Bug fixes** - Fixed `direction="row"` not applying on `EuiSplitPanel.Outer` when `onClick` was set. ([#9693](elastic/eui#9693)) - Fixed `EuiDatePicker` firing `onChange` with an out-of-bounds date when navigating to a month or year via the dropdowns while `minDate` or `maxDate` is set ([#9685](elastic/eui#9685)) - Fixed a visual issue on `EuiPanel` where panels with `onClick` would render with a `height` difference of `1px`. ([#9694](elastic/eui#9694)) - Fixed an issue in `EuiSelectable` and `EuiComboBox` where interactive content in group labels wasn't clickable due to overlapping content. ([#9678](elastic/eui#9678)) ### `@elastic/eslint-plugin-eui` [v2.14.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Removed auto-fix from `tooltip-button-icon-wrap` rule ([#9695](elastic/eui#9695)) --------- Co-authored-by: Tomasz Kajtoch <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Lene Gadewoll <[email protected]>
patrykkopycinski
pushed a commit
to patrykkopycinski/kibana
that referenced
this pull request
Aug 5, 2026
## Dependency updates `@elastic/eui` - v116.2.0 ⏩ v116.3.1 `@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.0 ## Package updates ### `@elastic/eui` [v116.3.1](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed `EuiTableHeaderCell` and `EuiTableHeaderCellCheckbox` throwing an error in Jest test environments due to static mocking of `useGeneratedHtmlId` by generating a stable, unique key with `uuidv4` ([elastic#9698](elastic/eui#9698)) - Fixed an issue where the tooltip anchor wrapper in `EuiAvatar` did not have the same `border-radius` applied as the avatar itself. ([elastic#9697](elastic/eui#9697)) ### `@elastic/eui` [v116.3.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `EuiBanner` component ([elastic#9673](elastic/eui#9673)) - Replaced native browser `title` attributes with `EuiToolTip` across the following components for consistent tooltips: ([elastic#9643](elastic/eui#9643)) - `EuiAvatar` - `EuiBasicTable` - `EuiBreadcrumbs` - `EuiComboBox` - `EuiDataGrid` - `EuiAutoRefresh` - `EuiSuperDatePicker` - `EuiFieldPassword` - `EuiMarkdownEditor` - `EuiPagination` - `EuiSearchBar` - `EuiSelectable` - `EuiTextTruncate` - Extended `EuiToolTip`'s `display` prop to support `"flex"` ([elastic#9643](elastic/eui#9643)) - Added experimental support for sticky headers in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` ([elastic#9682](elastic/eui#9682)) **Bug fixes** - Fixed `direction="row"` not applying on `EuiSplitPanel.Outer` when `onClick` was set. ([elastic#9693](elastic/eui#9693)) - Fixed `EuiDatePicker` firing `onChange` with an out-of-bounds date when navigating to a month or year via the dropdowns while `minDate` or `maxDate` is set ([elastic#9685](elastic/eui#9685)) - Fixed a visual issue on `EuiPanel` where panels with `onClick` would render with a `height` difference of `1px`. ([elastic#9694](elastic/eui#9694)) - Fixed an issue in `EuiSelectable` and `EuiComboBox` where interactive content in group labels wasn't clickable due to overlapping content. ([elastic#9678](elastic/eui#9678)) ### `@elastic/eslint-plugin-eui` [v2.14.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Removed auto-fix from `tooltip-button-icon-wrap` rule ([elastic#9695](elastic/eui#9695)) --------- Co-authored-by: Tomasz Kajtoch <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Lene Gadewoll <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates
EuiAvatar, fixing a small issue introduced in #9643 where the new tooltip wrapper doesn't have the sameborder-radiusas the avatar element itself. That resulted in a larger trigger area and a visible regression inEuiCommentListused in high contrast mode (HCM).API Changes
⚪ No API changes
Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 Low
Due to the added Emotion styles on the tooltip, snapshots likely require updating.
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
💻 EuiAvatar Storybook
💻 EuiCommentList Storybook
EuiAvatarelement has the sameborder-radius(depending on selectedtypeEuiCommentListlooks as expected in HCMChecklist before marking Ready for Review
QA: Tested in CodeSandbox and [Kibana](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/testing-in-kibana.md)QA: Tested docs changesBreaking changes: Addedbreaking changelabel (if applicable)Reviewer checklist