Skip to content

Commit ae70912

Browse files
committed
Fix controls dark mode
1 parent ae3738e commit ae70912

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/elements/src/canvas.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Background, ReactFlow, type ReactFlowProps } from "@xyflow/react";
22
import type { ReactNode } from "react";
33
import "@xyflow/react/dist/style.css";
4+
import { Controls } from "./controls";
45

56
type CanvasProps = ReactFlowProps & {
67
children?: ReactNode;
@@ -17,6 +18,7 @@ export const Canvas = ({ children, ...props }: CanvasProps) => (
1718
{...props}
1819
>
1920
<Background bgColor="var(--sidebar)" />
21+
<Controls />
2022
{children}
2123
</ReactFlow>
2224
);

packages/elements/src/controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const Controls = ({ className, ...props }: ControlsProps) => (
1010
<ControlsPrimitive
1111
className={cn(
1212
"gap-px overflow-hidden rounded-md border bg-card p-1 shadow-none!",
13-
"[&>button]:rounded-md [&>button]:border-none",
13+
"[&>button]:rounded-md [&>button]:border-none! [&>button]:bg-transparent! [&>button]:hover:bg-secondary!",
1414
className
1515
)}
1616
{...props}

0 commit comments

Comments
 (0)