feat(kibana-security): replace title props and wrap EuiButtonIcon with EuiToolTip#271489
Open
weronikaolejniczak wants to merge 5 commits into
Open
feat(kibana-security): replace title props and wrap EuiButtonIcon with EuiToolTip#271489weronikaolejniczak wants to merge 5 commits into
weronikaolejniczak wants to merge 5 commits into
Conversation
8 tasks
Contributor
Author
|
buildkite test this |
|
Pinging @elastic/eui-team (EUI) |
jeramysoucy
approved these changes
May 29, 2026
Contributor
jeramysoucy
left a comment
There was a problem hiding this comment.
Below is a matrix of changes to the Kibana Security domain. I have tested each case.
| Surface | File | Change |
|---|---|---|
| Role Mappings → Field rule editor | field_rule_editor.tsx | Wrap "Add alternate value" (+) and "Delete value" (🗑) icon buttons in EuiToolTip. Add aria-hidden to empty filler icons. |
| Roles → Index privileges | index_privilege_form.tsx | Wrap "Delete index/remote-index privilege" (🗑) icon button in EuiToolTip. |
| Roles → Remote cluster privileges | remote_cluster_privileges_form.tsx | Wrap "Delete remote cluster privilege" (🗑) icon button in EuiToolTip. |
| Roles → Privilege summary table | privilege_summary_table.tsx | Wrap the row expand/collapse chevron button in EuiToolTip. Add aria-hidden to decorative category icons. |
| Roles → Kibana privileges → space table | privilege_space_table.tsx | Wrap "Edit" (✏️) and "Delete" (🗑) row-action icon buttons in EuiToolTip. Add aria-hidden to empty filler icon. |
| Copy to space → result details | space_result_details.tsx | Replace <p className="eui-textTruncate" title={name}> with <EuiTextTruncate text={name} />. |
| Space settings → solution view callout | solution_view_switch_callout_internal.tsx | Wrap the callout's "Dismiss" (×) icon button in EuiToolTip. |
| Space selector card | space_card.tsx | Replace title attribute on EuiTextColor description with a wrapping EuiToolTip. |
| iconType={expandedFeatures.includes(featureId) ? 'chevronSingleUp' : 'chevronSingleDown'} | ||
| /> | ||
| <EuiToolTip | ||
| content={expandedFeatures.includes(featureId) ? 'Collapse' : 'Expand'} |
Contributor
There was a problem hiding this comment.
It seems unnecessary to add the additional tooltip text here given the style of the button and the inclusion of aria-label, but I am not opposed to it either.
Contributor
Author
There was a problem hiding this comment.
The tooltip is for sighted users to understand what this button does. aria-label allows screen readers to announce the button appropriately.
Our recommendation as EUI team: always wrap EuiButtonIcon with EuiToolTip and always pass aria-label to it.
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
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.
Relates to elastic/eui#9566
Important
These changes should be carefully tested visually by each code owner. Wrapping with
EuiToolTipinstead of passingtitleleads to another DOM node and can potentially break the layout. In such cases, I would appreciate committing appropriate fixes to this PR directly, I cannot possibly setup and run all Kibana functionalities to fix every regression.This PR:
EuiButtonIconwithEuiToolTip, the content is the same asaria-label, anytitlepassed toEuiButtonIconis removed,titlecases (not truncation related) to useEuiToolTipinstead (if applicable).