You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiFlyout] Support disabling leadingActions/trailingActions items in EuiFlyoutMenu #9934
EuiFlyoutMenuAction (used for EuiFlyoutMenu's leadingActions/trailingActions) has no isDisabled option. Consumers sometimes want to keep an action visible but disabled, with a tooltip explaining why it's unavailable, and there's currently no way to do that.
Proposed Solution
Add isDisabled to EuiFlyoutMenuAction, and allow the existing toolTipContent prop to display a disabled reason.
Use Case
Discover's document flyout header uses trailingActions for a "Share direct link" button that's sometimes unavailable (insufficient permissions, unresolved row), and we want users to know why it's unavailable in these cases.
Value / Impact
Better UX/a11y for any conditionally unavailable flyout menu action.
Urgency
Medium, ideally sooner than later.
Do alternatives or workarounds exist?
Partially. Workarounds exist (e.g. keeping the action enabled and showing a toast on click) but aren't great.
@tsullivan What are the chances we could include isLoading with this as well? Our use case does async work when clicking the button, and there was a design suggestion to use a loading state for it. I can instead open a separate dedicated issue for it if preferred.
@davismcphee putting a loading indicator into the menu bar might be tough - there will be cases where the flyout has no menu actions, pagination or history control and will auto-hide itself.
@tsullivan sorry, I didn't explain that well. What I meant was exposing isLoading on header menu actions alongside isDisabled to set the button state to loading.
Activity
davismcphee commentedon Aug 27, 2026
@tsullivan What are the chances we could include
isLoadingwith this as well? Our use case does async work when clicking the button, and there was a design suggestion to use a loading state for it. I can instead open a separate dedicated issue for it if preferred.cc @l-suarez
tsullivan commentedon Aug 27, 2026
@davismcphee putting a loading indicator into the menu bar might be tough - there will be cases where the flyout has no menu actions, pagination or history control and will auto-hide itself.
eui/packages/eui/src/components/flyout/use_flyout_menu.ts
Line 71 in 5834ecb
davismcphee commentedon Aug 28, 2026
@tsullivan sorry, I didn't explain that well. What I meant was exposing
isLoadingon header menu actions alongsideisDisabledto set the button state to loading.ryankeairns commentedon Aug 28, 2026
Design check: nothing materially new/different here. Sounds like standard loading and disabled states.
Let me know if I am overlooking anything.
tsullivan commentedon Aug 31, 2026
Makes sense to me. I confirmed that EuiButtonIcon supports
isDisabledandisLoading✅davismcphee commentedon Sep 2, 2026
Thanks both!
tsullivan commentedon Sep 2, 2026
We should also support
hrefand allow Cmd+Click to work (should open something in a new tab)