Disabled option for Menu.Item
#58853
Closed
going-confetti
announced in
Saga Design System
Replies: 1 comment 4 replies
-
Hi @going-confetti , Sorry for the late reply. I'd say this is a valuable change for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I'd like to discuss the Menu component, specifically a potential addition of the
disabled
prop forMenu.Item
.Currently,
Menu.Item
cannot be disabled, so in cases when a particular action is not allowed, hiding the menu item seems to be the only option - I believe it makes sense sometimes, for example if the user can't trigger the action because of RBAC (so the disabled status doesn't change often, if at all).However, for menu items that change their disabled status often (such as preventing a running test from being deleted in the k6 plugin), it would be good to have the ability to disable them similarly to disabling buttons.
I'm wondering if there are guidelines for this (hiding vs. disabled UI elements) - let me know what you think, and I'll be happy to create a PR, if you consider this a good suggestion
@staton-hyse11 @JoaoSilvaGrafana
Beta Was this translation helpful? Give feedback.
All reactions