Repository navigation
Conversation
Reports interactive elements nested inside leaf EUI controls (EuiButton, EuiLink, EuiTab, ...) and inside clickable EuiCard content. Extracts a shared isInteractiveElement() predicate, also used by tooltip-no-interactive-content, which now reports EuiBadge/EuiBetaBadge/ EuiCard with onClick or href. Co-Authored-By: Claude Opus 5 <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
- Inline the single-use card content props and move the `selectable` rationale onto the gate it explains - Pass the resolved component name into getTarget, dropping a duplicate getElementName call and a non-null assertion - Rewrite getContentRoots as guard clauses instead of a dense flatMap - Correct a comment about nesting depth, and pin the real behaviour with a test: each level is reported against its own parent Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Address the identified false negatives and incorrect interactive-element classifications before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds a recommended EUI accessibility rule for nested interactive elements and centralizes interactive-element detection for tooltip validation.
Changes:
- Adds and registers
no-nested-interactive-element. - Refactors shared interactive-element detection and updates tooltip behavior.
- Adds tests, documentation, and a changelog entry.
File summaries
| File | Summary |
|---|---|
packages/eslint-plugin/src/utils/is_interactive_element.ts |
Shared predicate; needs prop-aware handling for conditional components and selectable cards. |
packages/eslint-plugin/src/utils/constants.ts |
Defines interactive elements; several native and EUI entries require conditional handling. |
packages/eslint-plugin/src/rules/a11y/tooltip_no_interactive_content.ts |
Reuses the shared predicate. |
packages/eslint-plugin/src/rules/a11y/tooltip_no_interactive_content.test.ts |
Tests conditional interactive tooltip content. |
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts |
Implements the new rule; needs broader leaf-slot coverage and a narrower selectable-card exemption. |
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.test.ts |
Tests nested interactive-element behavior. |
packages/eslint-plugin/src/index.ts |
Registers the rule and recommended configuration. |
packages/eslint-plugin/README.md |
Documents the rule and usage examples. |
packages/eslint-plugin/changelogs/upcoming/10035.md |
Documents the release changes. |
Review details
Suppressed comments (8)
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:40
LEAF_COMPONENTSis used as an unconditional outer-target set, butEuiListGroupItemandEuiContextMenuItemcan render non-interactive<li>/<div>containers. For example, a button used as the label/child of an actionless list-group/context-menu item is not nested in an outer control, yet this branch will report it. The outer-target check also needs to account for the component's action props before returningnestedInteractive.
const LEAF_COMPONENTS = new Set(LEAF_INTERACTIVE_EUI_COMPONENTS);
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:56
- A clickable
EuiCardrenders more content inside the wrapper than these three props.imageaccepts a ReactElement, andbetaBadgePropscan create an interactiveEuiBetaBadge; for example,image={<EuiButton />}orbetaBadgeProps={{ href: '/docs', label: 'Docs' }}will still bubble toouterOnClickand trigger the title action, but neither path is scanned here. Extend the card-content analysis to cover all rendered interactive-capable props, including object-configured badges.
return hasInteractivityProp(openingElement)
? {
messageId: 'clickableCardContent',
contentProps: ['title', 'description', 'footer'],
}
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:52
hasInteractivityPropdoes not account forEuiCard's disabled state:card.tsxonly attachesouterOnClickwhenisClickableis true, which requires!isDisabled. A statically disabled card such as<EuiCard isDisabled onClick={onClick} footer={<EuiButton />} />is therefore reported with a double-fire message even though no card handler is attached. Exclude statically disabled cards when selecting this target.
return hasInteractivityProp(openingElement)
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:52
- The
selectableexclusion is broader than the runtime exception it is intended to preserve.EuiCardstill setsisClickableforselectableand forwards any bubbled click to the select button; only callers that explicitly stop propagation (ascard.a11y.tsxdoes) avoid the second action. The added valid case has a footer button but nostopPropagation, so this rule will miss a real double-fire. Please narrow the exemption or make the supported stop-propagation contract explicit and enforceable.
// forwards to the title link, so a control anywhere in its content fires
// both its own action and the card's. `selectable` cards are deliberately
// not a target: pairing the select button with a footer action is a
// supported EUI pattern.
return hasInteractivityProp(openingElement)
packages/eslint-plugin/src/utils/constants.ts:210
- This set is consumed as an unconditional target by
getTarget, but several entries do not always render an interactive element.EuiListGroupItemrenders an<li>withouthref/onClick,EuiContextMenuItemrenders a<div>in its no-action case, andEuiHeaderLogopermits nohref; for example,<EuiListGroupItem label={<EuiButton />} />would be reported even though the outer element is not a control. Make these entries prop-aware or restrict the set to components that always render a button/anchor.
'EuiListGroupItem',
packages/eslint-plugin/src/utils/constants.ts:160
- Every native
<a>is treated as focusable here, but an anchor withouthrefis not interactive. The new rule will consequently report content such as<EuiButton><a>label</a></EuiButton>even though the nested anchor is not a control. Handle anchors conditionally by requiring a meaningfulhrefinstead of putting allaelements in the unconditional set.
'a',
packages/eslint-plugin/src/utils/is_interactive_element.ts:27
INTERACTIVE_EUI_COMPONENTSis not an unconditional set for all of its entries:EuiListGroupItemrenders an<li>when it has neitherhrefnoronClick, andEuiContextMenuItemrenders a<div>when it has no action/tooltip props. DerivingALWAYS_INTERACTIVEfrom every non-badge/card entry therefore reports these plain variants as interactive content (including in the new nested rule). Make these components prop-aware instead of treating the whole list as always interactive.
const ALWAYS_INTERACTIVE = new Set([
...INTERACTIVE_HTML_ELEMENTS,
...INTERACTIVE_EUI_COMPONENTS.filter(
(name) => !CONDITIONALLY_INTERACTIVE.has(name)
),
packages/eslint-plugin/src/utils/is_interactive_element.ts:51
EuiCardis also interactive whenselectableis supplied:card.tsxsetsisClickablefor it and renders anEuiCardSelectbutton. Because this predicate only recognizesonClick/href, a selectable card nested in a leaf control or placed in tooltip content is treated as a transparent non-interactive wrapper and the generated select button is never reported. Keepselectableexcluded fromgetTargetfor the supported outer-card pattern, but classify it as interactive when this utility is used for inner content.
* components always qualify. `EuiBadge`, `EuiBetaBadge` and `EuiCard` only
* qualify when given `onClick` or `href`; without those props they render as
* plain display markup.
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Addresses Copilot review findings on #10035: - EuiListGroupItem (<li>), EuiContextMenuItem (<div>) and EuiHeaderLogo (<a> with no href) only render a control when given the right props. CONDITIONALLY_INTERACTIVE_EUI_COMPONENTS becomes a name -> props map so both outer-target selection and inner-content classification check them. - A native <a> without href is not focusable. - EuiCard counts as interactive content when given `selectable`, which renders an EuiCardSelect button. - Scan the remaining in-focusable content slots: EuiTab prepend/append, EuiFacetButton icon, EuiContextMenuItem icon, EuiListGroupItem icon, EuiHeaderSectionItemButton notification, EuiCard image. - A statically disabled EuiCard attaches no wrapper handler. Kibana re-scan: 16 -> 14 reports, the 2 dropped being confirmed false positives (actionless EuiContextMenuItem rendering a <div>). Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Multiple moderate findings remain in nested-interactive detection and shared interactivity semantics.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (10)
Previously missed (2) — in code that hasn't changed since the last review.
packages/eslint-plugin/src/utils/constants.ts:141
EuiBadgealso renders a native button when onlyiconOnClickis supplied (packages/eui/src/components/badge/badge.tsx:265-289, 322-361). With this prop list,<EuiButton><EuiBadge iconOnClick={...} /></EuiButton>is treated as non-interactive, so both this rule and the tooltip rule miss the nested button that EUI actually renders. IncludeiconOnClickin the conditional props and add a regression case.
packages/eslint-plugin/src/utils/constants.ts:142EuiBetaBadgewithtooltipContentrenders a focusablespanwithtabIndex={0}androle="button"even withoutonClickorhref(packages/eui/src/components/badge/beta_badge/beta_badge.tsx:226-243). The current map therefore allows a focusable control in tooltip content and misses it when nested in a leaf control. ModeltooltipContentas an interactive condition (or otherwise account for the generated trigger), with a regression test.
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:171
- When an inner EUI component is non-interactive,
shouldSkiponly recurses through its JSX children; it never walks that component's content props. Consequently<EuiButton><EuiListGroupItem label={<EuiLink href="/docs">Docs</EuiLink>} /></EuiButton>and a non-clickableEuiCardwith a JSXfooterare missed, even though those props render inside the outer button. Traverse known prop roots for nested components as well, not only when the component itself is a target.
{
sourceCode: context.sourceCode,
shouldSkip: (element) => !isInteractiveElement(element),
}
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:123
getContentRootsonly starts fromnode.childrenand the component-specific prop list, so it misses the equivalent JSXchildrenattribute. For example,<EuiButton children={<EuiLink href="/docs">Docs</EuiLink>} />renders the link inside the button but produces no report. Handlechildren={<...>}for leaf components that forward/render it (without adding it for components such asEuiStepHorizontal/EuiButtonIconthat ignore it), and add a regression test.
const roots: TSESTree.Node[] = [...node.children];
for (const attr of node.openingElement.attributes) {
if (attr.type !== 'JSXAttribute' || attr.name.type !== 'JSXIdentifier') {
continue;
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:108
- The leaf-only branch never adds native
buttonoraelements as outer targets, so cases such as<button><EuiLink href="/docs">Docs</EuiLink></button>or<a href="/app"><button>Open</button></a>are silently accepted. That conflicts with the rule's general no-nested-interactive purpose (and the implementation already models native elements for the inner scan); add native outer handling with the same href semantics and regression tests.
if (LEAF_COMPONENTS.has(componentName) && isInteractiveElement(node)) {
return {
messageId: 'nestedInteractive',
contentProps: LEAF_CONTENT_PROPS[componentName] ?? [],
};
packages/eslint-plugin/src/utils/constants.ts:228
EuiHeaderLogodoes not renderchildrenat all; its implementation emits only its own icon/SVG. Including it as a leaf target makes<EuiHeaderLogo href="/"><EuiLink href="/docs" /></EuiHeaderLogo>report nesting that never exists in the DOM. Please remove it from this leaf set (there are no JSX content props to scan for this component).
'EuiHeaderLogo',
packages/eslint-plugin/src/utils/constants.ts:155
- The shared
hasMeaningfulAttrtreatshref=""as false, but a native<a href="">is still a hyperlink and focusable. This makes the new predicate miss nested anchors (and changes the existing tooltip rule from its previous unconditionalacheck); keep a bare<a>non-interactive while treating an explicitly emptyhrefas interactive, with a regression test.
a: ['href'],
packages/eslint-plugin/src/utils/constants.ts:146
- An actionless
EuiListGroupItemcan still renderextraActionas anEuiButtonIconinside its<li>. SinceextraActionis not in this conditional set,isInteractiveElementreturns false and the outer walk skips the prop, so a case like<EuiButton><EuiListGroupItem extraAction={...} /></EuiButton>is missed. TreatextraActionas an inner-interactivity trigger while keeping it out ofLEAF_CONTENT_PROPSfor the case whereEuiListGroupItemitself is the outer target.
EuiListGroupItem: ['onClick', 'href'],
packages/eslint-plugin/src/utils/constants.ts:145
EuiHeaderLogoforwards an explicitly emptyhrefashref="", which still creates a focusable same-page link.hasMeaningfulAttrclassifies that value as absent, so the shared predicate misses this interactive logo when it is nested; the href check needs to match this component's actual rendering, not only non-empty values.
EuiHeaderLogo: ['href'],
packages/eslint-plugin/src/utils/is_interactive_element.ts:44
hasMeaningfulAttrtreatshref=""as falsy, but an emptyhrefstill creates a focusable same-document link for native<a>elements (andEuiHeaderLogopasses an empty value through). The new predicate therefore misses nested anchors and tooltip content usinghref="", whereas the previous tooltip rule treated all anchors as interactive. Use attribute-presence semantics forhref, with component-specific handling where an EUI component uses truthiness.
return propNames.some((prop) => hasMeaningfulAttr(openingElement, prop));
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
| * forwarding click handler. `betaBadgeProps` can also produce a control, but it | ||
| * is configured through an object rather than JSX and is not analysed here. | ||
| */ | ||
| const CARD_CONTENT_PROPS = ['description', 'footer', 'image', 'title']; |
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Co-authored-by: alexwizp <[email protected]>
Addressed in f7a1d94. |
There was a problem hiding this comment.
🟡 Changes recommended
Multiple moderate correctness and coverage findings remain, along with a changelog update.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (8)
packages/eslint-plugin/changelogs/upcoming/10035.md:5
- This release note describes only
onClick/hrefcases, but the new shared predicate also changes tooltip behavior forEuiBadge iconOnClick,EuiBetaBadge tooltipContent,EuiCard selectable, and prop-awareEuiContextMenuItem/EuiListGroupItem/EuiHeaderLogo. Please make the changelog accurately describe the broader behavior change so consumers can understand new warnings and removed false positives.
- Fixed `@elastic/eui/tooltip-no-interactive-content` to also report `EuiBadge`, `EuiBetaBadge` and `EuiCard` with `onClick` or `href` inside tooltip content
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:72
EuiStepHorizontalacceptschildrenthroughButtonHTMLAttributesand forwards...restonto its<button>, sochildren={<EuiLink ... />}is rendered inside the focusable step. Since this component is missing fromCOMPONENTS_WITH_CHILDREN_PROP,getContentRootsskips that form and the nested link is not reported. AddEuiStepHorizontalto this set and cover the explicitchildrenprop.
'EuiTab',
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:155
- This unconditionally adds JSX children to the roots, even for listed components that do not render their
childrenprop. For example,EuiStepHorizontalrenders only its generated step number/title andEuiListGroupItemrenderslabel, so<EuiStepHorizontal ...><EuiLink href="..." /></EuiStepHorizontal>is reported although the link never reaches the DOM. Gate these roots by each component's actual rendered-content contract while retaining transparent traversal for generic wrappers.
const roots: TSESTree.Node[] = [...node.children];
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:39
getDescendantRootsuses this map when traversing skipped, noninteractive descendants, butEuiBetaBadgeis missing its renderedlabelprop. A plain<EuiBetaBadge title="..." label={<EuiLink href="..." />} />inside anEuiButtonis therefore skipped without visiting the link, even though that link is rendered inside the button. AddEuiBetaBadge: ['label']to the content map and cover it with a regression test.
EuiContextMenuItem: ['icon'],
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:117
- This exclusion applies to every card with
selectable, even when it also hasonClickorhref.EuiCardstill installs its forwardingouterOnClickwhenever either of those props is present, so a footer or child control in a combined card can double-fire while this rule stays silent. Exclude only selectable-only cards and keep the clickable-card target whenhasInteractivityPropis true.
if (hasMeaningfulAttr(openingElement, 'selectable')) {
return null;
packages/eslint-plugin/src/rules/a11y/no_nested_interactive_element.ts:211
- When a non-interactive
EuiListGroupItemhasextraAction, this branch makes the item a visited leaf so the walk reports the syntheticEuiButtonIconand stops. It therefore never traverses the item'slabel/children; for example, a link inlabelalongsideextraActionis silently missed when the item is inside an outer button or clickable card. Report the synthetic sibling while continuing the descendant scan for the item's rendered content.
if (getSyntheticInteractiveElementName(element)) return false;
packages/eslint-plugin/src/rules/a11y/tooltip_no_interactive_content.ts:108
- Because this predicate now classifies non-actionable wrappers such as
EuiCard,EuiContextMenuItem, andEuiListGroupItemas skippable, the default walker only follows their JSX children here and never inspects rendered content props. For example,<EuiCard footer={<EuiButton />}>or<EuiListGroupItem label={<EuiLink />}>inside tooltip content produces no report even though the control is in the tooltip portal. Reuse the content-root mapping used by the nested-control rule (or otherwise recurse into these props) and add coverage for prop-rendered content.
{
sourceCode: context.sourceCode,
shouldSkip: shouldSkipTooltipContentElement,
packages/eslint-plugin/src/utils/constants.ts:240
- The rule description and README define 14 leaf controls, including
EuiHeaderLogo, but this array contains only 13 and omits it. Consequently a clickable<EuiHeaderLogo href="...">is never considered as an outer target. Add it here (and keep the documentation aligned), or remove it consistently from the stated scope if the omission is intentional.
'EuiHeaderLink',
'EuiHeaderSectionItemButton',
- Files reviewed: 10/10 changed files
- Comments generated: 1
- Review effort level: Lite
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
There was a problem hiding this comment.
🟡 Changes recommended
The new shared utility contains unreachable code and leaves its presenceOnlyProps parameter unused, which likely fails the package’s strict lint/type checks.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Balanced
## Dependency updates - `@elastic/eui` - v122.0.0 ⏩ v122.1.0 - `@elastic/eui-theme-borealis` - v8.0.0 ⏩ v8.1.0 - `@elastic/eui-theme-common` - v10.0.0 ⏩ v10.1.0 - `@elastic/eslint-plugin-eui` - v3.0.0 ⏩ v3.1.0 - `@elastic/eui-test-helpers` - v1.7.0 ⏩ v1.8.0 ## Changes >[!important] This EUI release and upgrade add changes for a [visual redesign](elastic/eui#9893). **Please ensure to to a smoke test of your owned UI**. ℹ️ Kibana specific changes are done to adjust usages to follow the new design. General EUI changes: - Implements `calm-down` visual refresh which generally changes: - Border radius: - Added and applied different semantic radius tokens: `inline`, `control`, `panel`, `frame` - Deprecated existing `small` and `medium` border radius tokens - Color: - Added new `colors.backgroundBaseRecessed` token (used as intermediate layer between page layer and raised surfaces) - Updated color values of `colors.body`, `colors. backgroundBaseSubdued`, `colors. backgroundBasePlain`, `colors. textParagraph` - Text: - Decreased letter spacing on `EuiTitle` - Decreased default font size on `EuiText` - Components: - Updated default color variant of `EuiLink` to `text` + adds an underline - Updated `EuiPanel` default to `hasBorder=true` and `hasShadow=false` - Updated button component `minWidth` to `false` - Updated components to use new/updated tokens and align with new design specs ### Screenshots The following screenshots are only a generic selection to provide an idea of the overall visual refresh change. | before | after | |---|---| | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 25 58" src="https://github.com/user-attachments/assets/95692132-e869-4ecb-84cc-997ca9e63d44" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 22 00" src="https://github.com/user-attachments/assets/e0a37549-1673-4eda-aa90-196dadcc9140" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 28 00" src="https://github.com/user-attachments/assets/e1951be2-765f-4e62-8ecd-0fd1624dd3b0" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 22 08" src="https://github.com/user-attachments/assets/a6ed8d72-05a4-4773-92b5-fa5df13e0359" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 29 16" src="https://github.com/user-attachments/assets/566f6d84-2dda-4d2b-bd64-a8aa6f2a8047" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 20 54" src="https://github.com/user-attachments/assets/4aae4db5-748b-45bf-b4b8-7ea4bba733c1" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 29 23" src="https://github.com/user-attachments/assets/a52ed555-3bd4-4b90-a6d1-d10d7169e5da" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 20 58" src="https://github.com/user-attachments/assets/3de1b9c7-a563-414c-81c4-6fda0e5ff128" /> <details><summary>Expand for more screenshots</summary> **Solutions Views** before | after | |---|---| | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 28 17" src="https://github.com/user-attachments/assets/daca9b23-b208-4556-843e-ec5190dec4ec" />| <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 22 29" src="https://github.com/user-attachments/assets/4d3a6536-9780-400e-8809-c5753e565bf5" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 28 26" src="https://github.com/user-attachments/assets/70707524-69bd-448c-bfbd-c2b4041782a2" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 22 35" src="https://github.com/user-attachments/assets/97a39b09-bca3-43ae-996f-0b0459c556e8" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 29 38" src="https://github.com/user-attachments/assets/c9ab4c48-d63f-4481-beef-6f5d60102746" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 21 21" src="https://github.com/user-attachments/assets/553115f1-c0a9-4b43-be51-88fc5c97fe2d" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 29 45" src="https://github.com/user-attachments/assets/e834e36e-72c2-416e-a4af-a66fbaf6ab1e" /> |<img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 21 46" src="https://github.com/user-attachments/assets/b947ea4d-fb31-4c2b-8d8f-11573902825f" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 31 27" src="https://github.com/user-attachments/assets/6571e4be-aab6-4dc1-ad55-0b3a4a8e050e" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 32 33" src="https://github.com/user-attachments/assets/2577931b-3845-4397-93c5-ba729dc5cd82" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 30 18" src="https://github.com/user-attachments/assets/c664d228-ae50-4554-aeac-d1363cd9f751" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 32 12" src="https://github.com/user-attachments/assets/e7be174d-8e81-4937-9451-8596d7c905bf" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 35 32" src="https://github.com/user-attachments/assets/b538d149-c42b-45a2-ac53-686eb464aba8" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 34 18" src="https://github.com/user-attachments/assets/a95d08c8-73e6-4db5-a5ab-4c9c2b3aa999" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 36 26" src="https://github.com/user-attachments/assets/8f018a66-f3b8-40f4-8122-be08d88b2e31" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 34 59" src="https://github.com/user-attachments/assets/b2251d95-5d75-47cd-8264-32a697422784" /> | **Classic Kibana** before | after | |---|---| <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 14 12" src="https://github.com/user-attachments/assets/b5af28d0-8b99-4d9a-a12c-5b2a62eca107" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 10" src="https://github.com/user-attachments/assets/33af2f8f-6272-4ce3-ade6-a7ccbe62cc32" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 14 32" src="https://github.com/user-attachments/assets/4c49d9a3-1fb2-41d2-a717-d7fca9878b41" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 20" src="https://github.com/user-attachments/assets/39f7822f-57fe-48e3-b22c-cde3e041acf3" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 14 40" src="https://github.com/user-attachments/assets/000484ef-af1a-4481-9d75-c9eeaae9c090" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 26" src="https://github.com/user-attachments/assets/82a018a6-2c59-4ff4-bb16-b45d90be756c" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 14 46" src="https://github.com/user-attachments/assets/01aca5bf-fe13-4b84-83ad-3536b9c7e386" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 35" src="https://github.com/user-attachments/assets/85e62d29-fbea-4041-b5dd-5309b5c6b282" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 14 52" src="https://github.com/user-attachments/assets/26156d08-b0e9-49f7-932d-bea4d1a2b5e6" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 40" src="https://github.com/user-attachments/assets/6018df5b-2f38-40cd-b386-0208d0fe3057" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 15 18" src="https://github.com/user-attachments/assets/bcb952d5-484b-4898-bb51-7f4f0c2cc2fe" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 46" src="https://github.com/user-attachments/assets/4fc82f04-80bb-43db-8bf9-bec144374214" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 15 23" src="https://github.com/user-attachments/assets/a193c6ef-8fc9-425b-8284-388ba8ebe258" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 18 51" src="https://github.com/user-attachments/assets/459bd310-326a-49d1-916c-cd3980fa1627" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 49 23" src="https://github.com/user-attachments/assets/751a158e-271c-4ba4-af19-e70aa7a7d9bf" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 50 17" src="https://github.com/user-attachments/assets/7e9a0767-1b8b-4fd5-814b-79057a2729df" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 39 14" src="https://github.com/user-attachments/assets/a97624af-c6dc-489a-a02c-a67c1836abba" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 38 28" src="https://github.com/user-attachments/assets/035ef40e-dea6-489c-bf66-0f97c891b18b" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 10 41" src="https://github.com/user-attachments/assets/ed7ff266-802b-44c4-b9a9-b6934a352982" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 16 42" src="https://github.com/user-attachments/assets/a50e8bd5-6525-4124-ae53-d33a2b0c5850" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 11 31" src="https://github.com/user-attachments/assets/4792ce34-a085-42b4-aa42-c9933599e204" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 16 52" src="https://github.com/user-attachments/assets/2810f688-bc45-4008-afdb-a97d1d996e53" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 12 38" src="https://github.com/user-attachments/assets/f49c17d4-ac72-4287-8a0a-4e11462a9650" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 17 01" src="https://github.com/user-attachments/assets/d5d86177-bb45-4606-84ce-08b5a702e7c7" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 13 02" src="https://github.com/user-attachments/assets/b5b7e8e3-ab7a-40e9-b7a4-b9438b78bfc0" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 17 05" src="https://github.com/user-attachments/assets/325d9b45-c173-408f-a21e-32cce2d47a54" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 13 08" src="https://github.com/user-attachments/assets/1a78073e-602b-4fac-979e-919701605165" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 17 13" src="https://github.com/user-attachments/assets/a14b1088-09d0-451d-b2b4-e2115889703d" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 13 34" src="https://github.com/user-attachments/assets/38ffe041-9a19-4a59-a3fc-b797582e92a1" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 17 27" src="https://github.com/user-attachments/assets/e8a84b24-20dc-43f8-9c79-3f9efa877c0d" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 13 45" src="https://github.com/user-attachments/assets/808af96a-c9a6-4476-8476-452df65bdcf9" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 17 53" src="https://github.com/user-attachments/assets/d58c8c79-cd4d-448a-bd71-238da2461cf8" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 39 09" src="https://github.com/user-attachments/assets/2a3d2f67-19c1-4d23-a893-569e315eda29" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 38 35" src="https://github.com/user-attachments/assets/98b00256-1e3f-43ec-8d36-c151ad0d2ddd" /> | | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 49 27" src="https://github.com/user-attachments/assets/a0dd60f9-d22f-4448-a33a-15f10616fb48" /> | <img width="1704" height="1289" alt="Screenshot 2026-09-21 at 11 50 22" src="https://github.com/user-attachments/assets/4543a9e8-dc77-4a03-9ffc-b168712f2cf5" /> | </details> ## Package updates ### `@elastic/eui` [v122.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Updated `EuiLink`: ([elastic#9989](elastic/eui#9989)) - Updated default `color` prop value to `text` - Added a dotted underline for distinction - Updated `EuiTitle` to use `euiTheme.font.title.letterSpacing` ([elastic#9989](elastic/eui#9989)) - Updated `EuiText`'s `size` default value to `s` ([elastic#9989](elastic/eui#9989)) - Updated `EuiTab`: ([elastic#9989](elastic/eui#9989)) - Updated text color and font weight - Removed inline padding - Added `euiTheme.colors.backgroundBaseRecessed` ([elastic#9968](elastic/eui#9968)) - Added semantic border radius tokens: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.inline` - `euiTheme.border.radius.control` - `euiTheme.border.radius.panel` - `euiTheme.border.radius.frame` - Added `euiTheme.font.title.letterSpacing` token ([elastic#9968](elastic/eui#9968)) - Updated color token values for: ([elastic#9968](elastic/eui#9968)) - `euiTheme.colors.backgroundBaseSubdued` - `euiTheme.colors.backgroundBasePlain` - `euiTheme.colors.body` - `euiTheme.colors.textParagraph` - `euiTheme.colors.text` (do not use, legacy value) - `euiTheme.colors.emptyShade` (do not use, legacy value) - Updated the icon `tableSparkles` glyph ([elastic#10042](elastic/eui#10042)) - Updated `EuiFlyoutBody` `banner` spacing to follow the flyout `paddingSize` instead of hardcoded margins ([elastic#10037](elastic/eui#10037)) - Updated `EuiButton`'s `minWidth` default value to `false` ([elastic#10016](elastic/eui#10016)) - Updated button components to use `border.radius.control`: ([elastic#10016](elastic/eui#10016)) - `EuiButton` - `EuiButtonEmpty` - `EuiButtonIcon` - `EuiSplitButton` - `EuiButtonGroup` - `EuiFilterGroup`/`EuiFilterButton` - Updated form components to use `border.radius.control` via shared form variables and `EuiFormControlLayout` ([elastic#10016](elastic/eui#10016)) - Updated `EuiFormControlLayout` to set a container background color when `disabled` or `readOnly` ([elastic#10016](elastic/eui#10016)) - Updated list and control-adjacent component border-radius: ([elastic#10016](elastic/eui#10016)) - `EuiContextMenu` - `border.radius.panel` - `EuiListGroup` - `border.radius.panel` - `EuiSelectable` when `bordered` - `border.radius.panel` - `EuiListItemLayout` - `border.radius.control` (used in selection list items of `EuiSelectable`, `EuiListGroup`, `EuiComboBox` and `EuiContextMenu`) - `EuiDescriptionListTitle` - `border.radius.inline` - `EuiKeyPadMenuItem` - `border.radius.control` - `EuiTreeViewItem` - `border.radius.control` - `EuiAvatar` when `display="space"` - `border.radius.control` - `EuiNotificationBadge` - `border.radius.control` - `EuiBreadcrumb` - `border.radius.control` - `EuiCodeBlock` - `border.radius.control` - `EuiFacetButton` - `border.radius.control` - `EuiHeaderLogo` - `border.radius.control` - `EuiTab` - `border.radius.control` - `EuiToolTip` - `border.radius.control` - `EuiRangeTooltip` - `border.radius.control` - Updated `EuiKeyPadMenuItem` and selection components using `EuiListItemLayout` to have a border in high contrast mode ([elastic#10016](elastic/eui#10016)) - Updated `findPopoverPosition` to support a `borderRadius` to account for rounded borders when positioning the arrow ([elastic#10016](elastic/eui#10016)) - Updated `EuiPanel`'s default value of `hasBorder` to `true` and `hasShadow` to `false` ([elastic#10009](elastic/eui#10009)) - Updated `EuiResizablePanel`'s default value of `hasBorder` to `false` ([elastic#10009](elastic/eui#10009)) - Updated panel related components to use `border.radius.panel`: ([elastic#10009](elastic/eui#10009)) - `EuiBanner` - `EuiCard` - `EuiCallOut` - `EuiPopover` - `EuiResizablePanel` - `EuiEmptyPrompt` - `EuiCommentEvent` - `EuiMarkdownEditor` - `EuiToast` - `EuiTour` - Updated `EuiModal` to use `border.radius.frame` ([elastic#10009](elastic/eui#10009)) - Updated `EuiCallOut`'s and `EuiToast`'s decor highlight to match the increased border radius ([elastic#10009](elastic/eui#10009)) - Updated `EuiBasicTable` and `EuiInMemoryTable` to use `border.radius.panel` when `panelled={true}` ([elastic#10017](elastic/eui#10017)) - Updated `EuiTable` to use `border.radius.panel` for mobile panels ([elastic#10017](elastic/eui#10017)) - Updated `EuiTable` and `EuiDataGrid` cell actions to `color="text"` ([elastic#10017](elastic/eui#10017)) **Bug fixes** - Fixed `EuiDescriptionListTitle` and `EuiDescriptionListDescription` compressed font size. ([elastic#10036](elastic/eui#10036)) - Fixed `EuiToolTip` not dismissing on mouse-out when wrapping `aria-disabled` elements (e.g. buttons with `hasAriaDisabled`) ([elastic#10008](elastic/eui#10008)) - Fixed a visual bug on `EuiBasicTable` with `scrollInline={true}` and `stickyHeader={true}` where header cells weren't properly aligned if they contain a tooltip ([elastic#10017](elastic/eui#10017)) **Deprecations** - Deprecate `euiTheme.colors.link` token ([elastic#9989](elastic/eui#9989)) - Deprecated generic border radius tokens: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.small` - `euiTheme.border.radius.medium` ### `@elastic/eui-theme-borealis` [v8.1.0](https://github.com/elastic/eui/blob/main/packages/eui-theme-borealis/changelogs/CHANGELOG_2026.md) - Added `euiTheme.colors.backgroundBaseRecessed` ([elastic#9968](elastic/eui#9968)) - Added semantic border radius tokens: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.inline` - `euiTheme.border.radius.control` - `euiTheme.border.radius.panel` - `euiTheme.border.radius.frame` - Added `euiTheme.font.title.letterSpacing` token ([elastic#9968](elastic/eui#9968)) - Updated color token values for: ([elastic#9968](elastic/eui#9968)) - `euiTheme.colors.backgroundBaseSubdued` - `euiTheme.colors.backgroundBasePlain` - `euiTheme.colors.body` - `euiTheme.colors.textParagraph` - `euiTheme.colors.text` (do not use, legacy value) - `euiTheme.colors.emptyShade` (do not use, legacy value) **Deprecations** - Deprecated generic border radius tokens: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.small` - `euiTheme.border.radius.medium` ### `@elastic/eui-theme-common` [v10.1.0](https://github.com/elastic/eui/blob/main/packages/eui-theme-common/changelogs/CHANGELOG_2026.md) - Added type for `euiTheme.colors.backgroundBaseRecessed` ([elastic#9968](elastic/eui#9968)) - Added types for semantic border radius tokens: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.inline` - `euiTheme.border.radius.control` - `euiTheme.border.radius.panel` - `euiTheme.border.radius.frame` - Added type for `euiTheme.font.title.letterSpacing` ([elastic#9968](elastic/eui#9968)) **Deprecations** - Deprecate `euiTheme.colors.link` token ([elastic#9989](elastic/eui#9989)) - Deprecated generic border radius token types: ([elastic#9968](elastic/eui#9968)) - `euiTheme.border.radius.small` - `euiTheme.border.radius.medium` ### `@elastic/eui-test-helpers` [v1.8.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Exported the `Eui*Selectors` constants of every Component Object from the package index, for tooling such as lint rules ([elastic#10049](elastic/eui#10049)) ### `@elastic/eslint-plugin-eui` [v3.1.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Added new `@elastic/eui/no-nested-interactive-element` rule ([elastic#10035](elastic/eui#10035)) **Bug fixes** - Fixed `@elastic/eui/tooltip-no-interactive-content` to also report `EuiBadge`, `EuiBetaBadge` and `EuiCard` with `onClick` or `href` inside tooltip content ([elastic#10035](elastic/eui#10035)) --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: boriskirov <[email protected]> Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Arturo Castillo Delgado <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Valentina Radtke <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: alexwizp <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Summary
What: Adds a new
@elastic/eui/no-nested-interactive-elementa11y rule, and extracts a sharedisInteractiveElement()predicate thattooltip-no-interactive-contentnow reuses.Why: Nesting a control inside another control produces invalid HTML (
<button>inside<button>,<a>inside<a>) and leaves the inner control unreachable or ambiguous for keyboard and screen-reader users. This is what axe-core flags asnested-interactive; there is noeslint-plugin-jsx-a11yequivalent, so it currently only gets caught at runtime (or not at all).How: The rule checks two kinds of outer element, and deliberately does not just reuse
INTERACTIVE_EUI_COMPONENTSwholesale:Leaf controls — a new
LEAF_INTERACTIVE_EUI_COMPONENTSconstant (14 components:EuiButton,EuiButtonEmpty,EuiButtonIcon,EuiContextMenuItem,EuiFacetButton,EuiFilterButton,EuiHeaderLink,EuiHeaderLogo,EuiHeaderSectionItemButton,EuiKeyPadMenuItem,EuiLink,EuiListGroupItem,EuiStepHorizontal,EuiTab). These render their content inside a single focusable<button>/<a>, so anything interactive nested in them is always wrong.Clickable
EuiCard— reported with a different message, because the failure mode is different.EuiCarddoes not nest children inside the anchor; only the title is the link, and the card wrapper gets anouterOnClickthat forwards to it (the "redundant click event" pattern,card.tsx). So it is not invalid HTML — it is a double fire: clicking a footer button also triggerslink.click().INTERACTIVE_EUI_COMPONENTSis intentionally not used as the outer set. It mixes leaf controls with composites whose entire job is to host controls (EuiBasicTable,EuiInMemoryTable,EuiSelectable,EuiSideNav,EuiTreeView,EuiComboBox,EuiPagination,EuiBreadcrumbs,EuiButtonGroup, …); treating those as outer targets would be a false-positive factory. It is used for the inner set, plus nativea/button/input/select/textarea.Non-obvious decisions for reviewers:
selectablecards are not checked. Dogfooding flagged 3 cases, all in EUI's owncard.a11y.tsx: selectable cards with footer actions, which is a shipped pattern guarded bye.stopPropagation(). Flagging our own fixtures isn't defensible, soselectableis an explicit non-trigger with a test pinning it.EuiListGroupItem'sextraActionrenders a sibling button, not a nested one. Only props that render inside the focusable element are scanned (labelonEuiKeyPadMenuItem/EuiListGroupItem,titleonEuiStepHorizontal), since most leaf content arrives via props rather than children.EuiBadge/EuiBetaBadge/EuiCardonly count as interactive content when they haveonClick/href. A plain<EuiBadge>inside anEuiLinkis fine.EuiFlexGroup,EuiText,EuiToolTipetc. are walked through via the existingwalkJsxChildrenshouldSkipoption, as are controls referenced through a local variable or local arrow-function component. Dynamic content ({renderLabel()}) is skipped.Behavior change to an existing rule
Extracting the shared predicate changes
tooltip-no-interactive-content: it previously treatedEuiBadge/EuiBetaBadge/EuiCardas never interactive, and now checksonClick/href. So<EuiToolTip content={<EuiBadge onClick={…} />}>is newly reported — correct, since that badge is unreachable inside a tooltip portal. Covered by a new test and a changelog entry. Happy to split this out if reviewers would rather keep the PR purely additive.API Changes
@elastic/eslint-plugin-euino-nested-interactive-elementwarninrecommended@elastic/eslint-plugin-euitooltip-no-interactive-contentEuiBadge/EuiBetaBadge/EuiCardwithonClick/hrefin tooltip contentScreenshots
N/A — lint rule, no visual surface.
Impact Assessment
warn-level rule inrecommended; consumers on the recommended config will see new warnings where the pattern exists. No errors, no build breakage.Dogfooded against this repo with a scratch
Linterharness: 0 reports acrosspackages/eui/src(1664.tsxfiles),packages/website(121), andpackages/docusaurus-theme(70) — after excludingselectablecards. Not yet run against Kibana, which is whereEuiCard onClick+ footer button is far likelier; that should inform whether this ships aswarnorerror.Impact level: 🟢 Low
Release Readiness
packages/eslint-plugin/README.md— new rule section with rationale, scope, and good/bad examplesFigmaMigration guiderecommendedatwarn; picked up by consumers on the next plugin releaseQA instructions for reviewer
LEAF_INTERACTIVE_EUI_COMPONENTSactually renders its children outside its focusable element.selectable-card exclusion is the call you'd make (seecard.a11y.tsx).tooltip-no-interactive-contentbehavior change is wanted here rather than in its own PR.Checklist before marking Ready for Review
QA: light/dark modes, mobile, browsers, keyboard, screen reader— lint ruleQA: docs changeschangelogs/upcoming/_.mdBreaking changes label🤖 Generated with Claude Code