diff --git a/docs/stories/SimpleMenu.mdx b/docs/stories/SimpleMenu.mdx index 6a31e1fa6..b3e9589be 100644 --- a/docs/stories/SimpleMenu.mdx +++ b/docs/stories/SimpleMenu.mdx @@ -94,7 +94,7 @@ import { Menu } from '@strapi/design-system'; const MyMenu = () => { return ( - + Actions console.log('opening')}>Open console.log('cloning')}> diff --git a/packages/design-system/src/components/SimpleMenu/Menu.test.tsx b/packages/design-system/src/components/SimpleMenu/Menu.test.tsx index 4596a24e6..0fa343bfc 100644 --- a/packages/design-system/src/components/SimpleMenu/Menu.test.tsx +++ b/packages/design-system/src/components/SimpleMenu/Menu.test.tsx @@ -9,7 +9,7 @@ interface ComponentProps { const Component = ({ onAction1Select, onSubmenuAction1Select }: ComponentProps) => ( - + Actions Action 1 diff --git a/packages/design-system/src/components/SimpleMenu/Menu.tsx b/packages/design-system/src/components/SimpleMenu/Menu.tsx index f2b5e5d82..bdf72f58b 100644 --- a/packages/design-system/src/components/SimpleMenu/Menu.tsx +++ b/packages/design-system/src/components/SimpleMenu/Menu.tsx @@ -25,7 +25,7 @@ const MenuRoot = DropdownMenu.Root; * MenuTrigger * -----------------------------------------------------------------------------------------------*/ -type TriggerPropsBase = Omit & { +type TriggerPropsBase = Omit & { endIcon?: React.ReactNode; label?: React.ReactNode | string; }; @@ -65,9 +65,7 @@ const MenuTrigger = React.forwardRef( {icon} ) : ( - +