Skip to content

[EuiSelectable] Support hasAriaDisabled prop on options - #10090

Merged
mgadewoll merged 6 commits into
elastic:mainfrom
mgadewoll:selectable/support-aria-disabled-tooltip
Oct 5, 2026
Merged

mgadewoll merged 6 commits into
elastic:mainfrom
mgadewoll:selectable/support-aria-disabled-tooltip

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • What: Adds support for hasAriaDisabled on EuiSelectable options.
  • Why: Closes [EuiSelectable] Enable focusable disabled options #8869. The issue was reopened after a new request from @paul-tavares as the current way of using renderOption to manually compose the option is not optimal.
  • How:
    • Added support for hasAriaDisabled on EuiSelectableListItem and EuiSelectableOption (the underlying EuiListItemLayout component already supported it)
    • Adjusted styles to ensure hasAriaDisabled options are highlighted on navigation (as they are enabled for navigation but disabled for selection)
    • Fixed an edge case infinite loop when searchable={true} and only disabled options would be matched by adding a break guard

API Changes

component / parent prop / child change description
type EuiSelectableOption hasAriaDisabled added Opt-in prop to switch the option rendered in options to a custom disabled state via aria-disabled
EuiSelectableListItem hasAriaDisabled added Opt-in prop to switch the item to a custom disabled state via aria-disabled

Screenshots

Single selection Multi selection
Screen.Recording.2026-09-28.at.11.33.26.mov
Screen.Recording.2026-09-28.at.11.33.05.mov

Screenreader output

Windows (NVDA) macOS (VoiceOver)
Screenshot 2026-09-28 at 11 42 09 Screenshot 2026-09-28 at 11 51 55

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

🧪 The changes have been run in Kibana CI (🟢 build)

Release Readiness

  • Documentation: EUI docs
  • 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

  • verify that options are navigable by keyboard and hoverable by mouse when hasAriaDisabled
  • verify that options with hasAriaDisabled={true} and tooltip show the tooltip on keyboard focus and mouse hover
  • verify that options with hasAriaDisabled={true} are correctly announced in screen readers
  • verify there are no unexpected regressions with production

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 Sep 28, 2026
@mgadewoll
mgadewoll force-pushed the selectable/support-aria-disabled-tooltip branch from 68fa71c to 8ac0d3a Compare September 28, 2026 09:54
@mgadewoll
mgadewoll force-pushed the selectable/support-aria-disabled-tooltip branch from 59cd054 to f65e120 Compare September 28, 2026 09:58
@mgadewoll
mgadewoll requested a lite review from Copilot September 28, 2026 10:33

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

An unresolved critical crash remains for searches matching only native-disabled options.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds hasAriaDisabled support to EuiSelectable options, including navigation, styling, tooltips, documentation, tests, and changelog updates.

Changes:

  • Propagates hasAriaDisabled through selectable components.
  • Updates navigation and disabled-option styling.
  • Adds stories, tests, documentation, and release notes.
File Summary
packages/​website/​docs/​components/​forms/​selection/​selectable.mdx Documents disabled-option tooltips.
packages/​eui/​src/​components/​selectable/​selectable.tsx Updates navigation; contains an unresolved critical crash when searches match only native-disabled options.
packages/​eui/​src/​components/​selectable/​selectable.stories.tsx Adds disabled-tooltip story coverage.
packages/​eui/​src/​components/​selectable/​selectable.spec.tsx Tests navigation, selection prevention, and tooltips.
packages/​eui/​src/​components/​selectable/​selectable_option.tsx Adds the option prop type.
packages/​eui/​src/​components/​selectable/​selectable_list/​selectable_list.tsx Forwards the new prop.
packages/​eui/​src/​components/​selectable/​selectable_list/​selectable_list_item.tsx Applies disabled semantics and tooltip behavior.
packages/​eui/​src/​components/​selectable/​selectable_list/​selectable_list_item.test.tsx Tests disabled rendering and tooltips.
packages/​eui/​src/​components/​list_item_layout/​_list_item_layout.tsx Supports custom disabled behavior.
packages/​eui/​src/​components/​list_item_layout/​_list_item_layout.styles.ts Adjusts disabled and focused styling.
packages/​eui/​changelogs/​upcoming/​10090.md Records the API addition and bug fix.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mgadewoll

Copy link
Copy Markdown
Contributor Author

buildkite test this

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mgadewoll

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mgadewoll

@mgadewoll
mgadewoll marked this pull request as ready for review September 28, 2026 13:22
@mgadewoll
mgadewoll requested a review from a team as a code owner September 28, 2026 13:22

@weronikaolejniczak weronikaolejniczak 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.

LGTM 🟢 Couldn't find anything blocking, works as expected!

@mgadewoll
mgadewoll merged commit 8be2ac9 into elastic:main Oct 5, 2026
8 checks passed
skynetigor pushed a commit to skynetigor/kibana that referenced this pull request Oct 7, 2026
## Dependency updates

`@elastic/eui` - v123.0.0 ⏩ v123.1.0

## Package updates

### `@elastic/eui`
[v123.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Removed the left color highlight from `EuiCallOut`
([elastic#10109](elastic/eui#10109))
- Updated Flyout menu height to 50px
([elastic#10103](elastic/eui#10103))
- Added new icons: `chartMix`, `chartWaffle`, `clipboardWarning`,
`clockUp`, `emergencyLight`, `productCanvas`, `productElasticAgent`,
`productFleet`, `productLens`, `puzzlePiece`, `shield`
([elastic#10111](elastic/eui#10111))
- Added `hasAriaDisabled` prop on `EuiSelectableListItem` and `type
EuiSelectableOption`
([elastic#10090](elastic/eui#10090))
- Added refs for `EuiFlyoutHeader`, `EuiFlyoutFooter`, and the outer
`EuiFlyout` scroll container.
([elastic#10105](elastic/eui#10105))
- Corrected `EuiFlyoutHeaderProps`, `EuiFlyoutFooterProps`, and
`EuiFlyoutBodyProps` to describe component props instead of component
types. ([elastic#10105](elastic/eui#10105))
- Updated `EuiFormRow`'s `labelAppend` to render string content with an
extra-small, subdued text style.
([elastic#10067](elastic/eui#10067))

**Bug fixes**

- Fixed a bug on `EuiSelectable` with `searchable={true}` that could
result in an infinite loop if all search results are disabled
([elastic#10090](elastic/eui#10090))
- Fixed `EuiSuperSelect` omitting the currently selected value from its
accessible name when an `aria-label` or `aria-labelledby` was passed.
External labels are now combined with the selected value instead of
overriding it ([elastic#10039](elastic/eui#10039))

---------

Co-authored-by: Ángeles Martínez Barrio <[email protected]>
Co-authored-by: Alexey Antonov <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
weronikaolejniczak pushed a commit to boriskirov/eui that referenced this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiSelectable] Enable focusable disabled options

4 participants