Skip to content

Commit 85fdd43

Browse files
committed
menu default border radius
1 parent aec807b commit 85fdd43

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/gamut/src/Menu/Menu.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ export const Menu = forwardRef<
88
Omit<ComponentProps<typeof List>, 'root'>
99
>(
1010
(
11-
{ children, variant = 'popover', spacing = 'normal', role, ...rest },
11+
{
12+
children,
13+
variant = 'popover',
14+
spacing = 'normal',
15+
role,
16+
borderRadius = 'sm',
17+
...rest
18+
},
1219
ref
1320
) => {
1421
const currentContext = useMenu({ variant, role, spacing });
1522

1623
return (
17-
<List {...rest} {...currentContext} ref={ref}>
24+
<List {...rest} {...currentContext} borderRadius={borderRadius} ref={ref}>
1825
<MenuProvider value={currentContext}>{children}</MenuProvider>
1926
</List>
2027
);

0 commit comments

Comments
 (0)