Repository navigation
Conversation
…com:tsullivan/eui into flyout-menu-work/expand-action-button-props
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A few newly added/updated comments/docs contain inaccuracies/omissions that should be corrected to avoid misleading guidance.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR expands EuiFlyoutMenuAction (used by EuiFlyoutMenu’s leadingActions/trailingActions) to support disabled/loading states and link navigation, and updates the docs/examples/tests to reflect the new API.
Changes:
- Extend
EuiFlyoutMenuActionwithisDisabled,isLoading,href, andtarget, and makeonClickoptional. - Update flyout menu action rendering to forward the new props to
EuiButtonIcon(includinghasAriaDisabledbehavior when tooltips are present). - Add docs prop table generation + documentation updates, plus new Storybook story and Jest coverage for the new behavior.
File summaries
| File | Description |
|---|---|
| packages/website/docs/components/containers/flyout/index.mdx | Adds a prop table entry for the EuiFlyoutMenuAction type docgen output. |
| packages/website/docs/components/containers/flyout/_flyout_menu.mdx | Documents the newly supported action props and links to the new prop table. |
| packages/eui/src/components/flyout/flyout_menu/types.ts | Expands the EuiFlyoutMenuAction interface and updates inline doc comments. |
| packages/eui/src/components/flyout/flyout_menu/types.docgen.tsx | Adds a docgen-only component wrapper so react-docgen-typescript can extract interface prop docs. |
| packages/eui/src/components/flyout/flyout_menu/action_button.tsx | Forwards new action props into EuiButtonIcon and sets hasAriaDisabled for tooltip-on-disabled behavior. |
| packages/eui/src/components/flyout/flyout_menu.test.tsx | Adds Jest coverage for disabled, loading, and href/target rendering. |
| packages/eui/src/components/flyout/flyout_menu.stories.tsx | Adds a new “Action states” story demonstrating href/loading/disabled states. |
| packages/eui/changelogs/upcoming/9992.md | Adds changelog entries describing the new props and optional onClick. |
Review details
- Files reviewed: 8/10 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
weronikaolejniczak
self-requested a review
September 3, 2026 09:33
weronikaolejniczak
approved these changes
Sep 3, 2026
weronikaolejniczak
left a comment
Contributor
There was a problem hiding this comment.
LGTM! 🟢 Thanks, @tsullivan (aka Sully 😄)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
Dosant
added a commit
to elastic/kibana
that referenced
this pull request
Sep 11, 2026
Part of elastic/eui-private#766 Staged commits cherry-picked from: - #287310 - #288418 - #235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in #288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from #287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
9 of 17 tasks
ppisljar
pushed a commit
to ppisljar/kibana
that referenced
this pull request
Sep 21, 2026
Part of elastic/eui-private#766 Staged commits cherry-picked from: - elastic#287310 - elastic#288418 - elastic#235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in elastic#288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from elastic#287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([elastic#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([elastic#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([elastic#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([elastic#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([elastic#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([elastic#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([elastic#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([elastic#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([elastic#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([elastic#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([elastic#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([elastic#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([elastic#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([elastic#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([elastic#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([elastic#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([elastic#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([elastic#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([elastic#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([elastic#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
weronikaolejniczak
pushed a commit
to boriskirov/eui
that referenced
this pull request
Nov 11, 2026
Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[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
Closes #9934
What: Expands
EuiFlyoutMenuAction(used byEuiFlyoutMenu'sleadingActions/trailingActions) withisDisabled,isLoading,href, andtarget.onClickbecomes optional so an action can navigate viahrefalone.Why: There was no way to keep a flyout menu action visible but unavailable. Consumers had to either hide the action or leave it enabled and explain the failure after the click. Discover's document flyout needs a "Share direct link" action that is sometimes unavailable (insufficient permissions, unresolved row) and wants to say why.
How:
MenuActionButtonalready renders anEuiButtonIcon, so the four props are forwarded to it directly and the existingtoolTipContentcarries the disabled reason.One non-obvious decision: when an action is disabled (or loading) and has
toolTipContent, the button is also givenhasAriaDisabled. A nativelydisabledbutton is removed from the tab order, so keyboard and screen reader users could never reach the tooltip explaining why the action is unavailable.hasAriaDisabledkeeps it focusable, which is the same approachEuiBasicTabletakes for disabled row actions (default_item_action.tsx) and what our tooltip docs prescribe under "Disabled elements". It is scoped to disabled-with-tooltip so enabled actions render exactly as before.API Changes
isDisabledtoolTipContentto explain why it is unavailableisLoadinghreftargethrefis providedonClickhrefalone. Non-breaking (widening)Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
onClickmoves from required to optional, which is a widening.EuiButtonIcon's existing states.aria-disabled="true"instead ofdisabled. No existing consumer can hit this, becauseisDisabled/isLoadingdid not exist before this PR. Enabled actions are byte-identical.Impact level: 🟢 Low
Release Readiness
EuiFlyoutMenuActionprop table on the same pageFigma:N/A — no new visual design; reusesEuiButtonIcon's existing disabled and loading statesMigration guide:N/A — additive and non-breakingleadingActions/trailingActionsitems inEuiFlyoutMenu#9934 —discover_document_flyout.tsx, discussed in [Discover] Add doc viewer deep link support kibana#282175 (comment)QA instructions for reviewer
Open Storybook → Layout/EuiFlyout/EuiFlyoutMenu → "Action states (href, isLoading, isDisabled)".
<a>— right-click offers "Open link in new tab", and itshref/target="_blank"are present in the DOM.Tabreaches the lock icon and its tooltip appears on focus. This is the behaviorhasAriaDisabledexists to enable — without it a disabled action is skipped entirely and the reason is unreachable.Enter/Spaceon the focused lock icon does nothing.Keyboard / a11y verification already performed (Chromium, via Playwright against the Storybook story)
hrefrenders as anchor<a href target="_blank" rel="noopener noreferrer">—relauto-secured bygetSecureRelForTargetTabreaches all three actionstabIndex: 0,aria-disabled="true", no nativedisabled)Enter/Spaceon the disabled actionaria-disabledisLoadingswaps icon → spinner → iconisLoadingpreserves focustabIndex: 0throughout, so keyboard position is not lost when an action starts loadingNote
Known issue (pre-existing, not introduced here): hovering a disabled action shows its tooltip but the tooltip does not dismiss on mouse-out.
EuiToolTip's anchor only neutralises pointer events for natively[disabled]elements, soaria-disabledones swallow themouseoutthat would hide it. It affects six other EUI call sites that already pairisDisabledwithhasAriaDisabled. Tracked separately in #9997; the keyboard path is unaffected.Relatedly, these action tooltips set
disableScreenReaderOutput, so noaria-describedbyis wired up and the disabled reason is shown visually but not announced. Worth a follow-up if we want the reason conveyed to assistive tech.Checklist before marking Ready for Review
isDisabled,isLoading,hrefandtarget, plus baselines for the new story. No Cypress spec added; the keyboard path is covered manually per the QA steps above.Breaking changes: Added— N/Abreaking changelabel (if applicable)Reviewer checklist