Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/components/Menu/ContextMenu.module.css

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/Menu/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { FloatingMenu } from "./FloatingMenu";
import { Drawer } from "vaul";
import classnames from "classnames";
import drawerStyles from "./DrawerMenu.module.css";
import contextStyles from "./ContextMenu.module.css";
import {
MenuContext,
type MenuData,
Expand Down Expand Up @@ -141,7 +140,7 @@ export const ContextMenu: FC<Props> = ({
<Root onOpenChange={onOpenChange}>
{trigger}
<Portal>
<Content asChild className={classnames(contextStyles.content)}>
<Content asChild>
<FloatingMenu showTitle={showTitle} title={title}>
{children}
</FloatingMenu>
Expand Down
11 changes: 0 additions & 11 deletions src/components/Menu/FloatingMenu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,10 @@ Please see LICENSE files in the repository root for full details.
}
}

@keyframes slide-out {
to {
opacity: 0;
transform: translate(0, var(--cpd-space-2x));
}
}

.menu[data-state="open"] {
animation: slide-in 180ms;
}

.menu[data-state="closed"] {
animation: slide-out 110ms;
}

@keyframes fade-in {
from {
opacity: 0;
Expand Down
1 change: 1 addition & 0 deletions src/components/Menu/FloatingMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ interface Props extends ComponentPropsWithoutRef<"div"> {
export const FloatingMenu = forwardRef<HTMLDivElement, Props>(
({ title, showTitle = true, className, children, ...props }, ref) => {
const titleId = useId();

return (
<div
role="menu"
Expand Down
Loading