-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mrc): fix <ActionMenu /> #14921
base: release/mrc-v2-update
Are you sure you want to change the base?
fix(mrc): fix <ActionMenu /> #14921
Conversation
ab7efe8
to
62c9f2a
Compare
packages/manager-react-components/src/components/navigation/menus/action/action.scss
Outdated
Show resolved
Hide resolved
62c9f2a
to
44a9fe5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the Menu component does have actions only, so Buttons are the only items accepted there (no links). If in your use case you have to navigate, please use the trigger function on the Button to do so
Following the suggestion of Francois, please implement this way.
44a9fe5
to
36afa13
Compare
@@ -21,6 +23,9 @@ export interface ActionMenuItem { | |||
iamActions?: string[]; | |||
urn?: string; | |||
className?: string; | |||
isDisabled?: boolean; | |||
isLoading?: boolean; | |||
color?: ODS_BUTTON_COLOR; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
export interface ActionMenuItem { | |
id: number; | |
rel?: string; | |
href?: string; | |
download?: string; | |
target?: string; | |
onClick?: () => void; | |
label: string; | |
className?: string; | |
} & React.ComponentProps<typeof OdsButton> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just suggestion to improve generic usage of this component
- add download file use-case - fix menu item style - fix trigger btn clickable zone ref: 14914 Signed-off-by: Romain Jamet <romain.jamet.ext@corp.ovh.com>
36afa13
to
fac4c58
Compare
Quality Gate passedIssues Measures |
develop
Only FR translations have been updatedBreaking change is mentioned in relevant commitsDescription