Some slight styling tweaks per design spec.
This commit is contained in:
parent
bc09ac757f
commit
74cb027fd7
@ -53,8 +53,8 @@
|
||||
|
||||
.dropdown-menu-item-base {
|
||||
display: flex;
|
||||
padding: 0 0.625rem;
|
||||
column-gap: 0.625rem;
|
||||
padding: 0 0.75rem;
|
||||
column-gap: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--color-gray-100);
|
||||
width: 100%;
|
||||
@ -70,7 +70,7 @@
|
||||
align-items: center;
|
||||
height: 2rem;
|
||||
cursor: pointer;
|
||||
border-radius: var(--border-radius-md);
|
||||
border-radius: var(--border-radius-sm);
|
||||
|
||||
@media screen and (min-width: 1921px) {
|
||||
height: 2.25rem;
|
||||
|
@ -57,7 +57,7 @@ const MenuContent = ({
|
||||
) : (
|
||||
<Island
|
||||
className="dropdown-menu-container"
|
||||
padding={2}
|
||||
padding={1}
|
||||
style={{ zIndex: 2 }}
|
||||
>
|
||||
{children}
|
||||
|
@ -18,13 +18,17 @@ const DropdownMenuSubContent = ({
|
||||
}).trim();
|
||||
|
||||
return (
|
||||
<DropdownMenuPrimitive.SubContent className={classNames}>
|
||||
<DropdownMenuPrimitive.SubContent
|
||||
className={classNames}
|
||||
sideOffset={8}
|
||||
alignOffset={-4}
|
||||
>
|
||||
{device.isMobile ? (
|
||||
<Stack.Col className="dropdown-menu-container">{children}</Stack.Col>
|
||||
) : (
|
||||
<Island
|
||||
className="dropdown-menu-container"
|
||||
padding={2}
|
||||
padding={1}
|
||||
style={{ zIndex: 1 }}
|
||||
>
|
||||
{children}
|
||||
|
@ -126,6 +126,7 @@
|
||||
--color-success: #268029;
|
||||
--color-success-lighter: #cafccc;
|
||||
|
||||
--border-radius-sm: 0.25rem;
|
||||
--border-radius-md: 0.375rem;
|
||||
--border-radius-lg: 0.5rem;
|
||||
|
||||
|
@ -593,6 +593,13 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
|
||||
</MainMenu.Sub.Item>
|
||||
</MainMenu.Sub.Content>
|
||||
</MainMenu.Sub>
|
||||
<MainMenu.Sub.Item
|
||||
onSelect={() => {
|
||||
alert("wow, nested submenus! very cool");
|
||||
}}
|
||||
>
|
||||
Another one
|
||||
</MainMenu.Sub.Item>
|
||||
</MainMenu.Sub.Content>
|
||||
</MainMenu.Sub>
|
||||
<MainMenu.ItemCustom>
|
||||
|
@ -19,7 +19,7 @@ exports[`<Excalidraw/> <MainMenu/> should render main menu with host menu items
|
||||
>
|
||||
<div
|
||||
class="Island dropdown-menu-container"
|
||||
style="--padding: 2; z-index: 2;"
|
||||
style="--padding: 1; z-index: 2;"
|
||||
>
|
||||
<div
|
||||
class="radix-menu-item"
|
||||
@ -155,7 +155,7 @@ exports[`<Excalidraw/> Test UIOptions prop Test canvasActions should render menu
|
||||
>
|
||||
<div
|
||||
class="Island dropdown-menu-container"
|
||||
style="--padding: 2; z-index: 2;"
|
||||
style="--padding: 1; z-index: 2;"
|
||||
>
|
||||
<div
|
||||
class="radix-menu-item"
|
||||
|
Loading…
x
Reference in New Issue
Block a user