Skip to content

Commit 9d4818f

Browse files
committed
style(web): update button styles in workflow canvas for improved UI consistency
1 parent b99199b commit 9d4818f

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

apps/web/src/components/workflow/workflow-canvas.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,43 +237,43 @@ function ActionButton({
237237
icon: <Play className="!size-4" />,
238238
title: "Execute Workflow",
239239
shortcut: "⌘⏎",
240-
className: "bg-green-600 hover:bg-green-700 text-white border-green-600",
240+
className: "bg-green-600 hover:bg-green-700 text-white",
241241
},
242242
submitted: {
243243
icon: <Square className="!size-4" />,
244244
title: "Stop Execution",
245245
shortcut: "⌘⏎",
246-
className: "bg-red-500 hover:bg-red-600 text-white border-red-500",
246+
className: "bg-red-600 hover:bg-red-700 text-white",
247247
},
248248
executing: {
249249
icon: <Square className="!size-4" />,
250250
title: "Stop Execution",
251251
shortcut: "⌘⏎",
252-
className: "bg-red-500 hover:bg-red-600 text-white border-red-500",
252+
className: "bg-red-600 hover:bg-red-700 text-white",
253253
},
254254
completed: {
255255
icon: <X className="!size-4" />,
256256
title: "Clear Outputs & Reset",
257257
shortcut: "⌘⏎",
258-
className: "bg-green-600 hover:bg-green-700 text-white border-green-600",
258+
className: "bg-amber-500 hover:bg-amber-600 text-white",
259259
},
260260
error: {
261261
icon: <X className="!size-4" />,
262262
title: "Clear Errors & Reset",
263263
shortcut: "⌘⏎",
264-
className: "bg-rose-600 hover:bg-rose-700 text-white border-rose-600",
264+
className: "bg-amber-500 hover:bg-amber-600 text-white",
265265
},
266266
cancelled: {
267267
icon: <Play className="!size-4" />,
268268
title: "Restart Workflow",
269269
shortcut: "⌘⏎",
270-
className: "bg-green-600 hover:bg-green-700 text-white border-green-600",
270+
className: "bg-green-600 hover:bg-green-700 text-white",
271271
},
272272
paused: {
273273
icon: <Play className="!size-4" />,
274274
title: "Resume Workflow",
275275
shortcut: "⌘⏎",
276-
className: "bg-blue-500 hover:bg-blue-600 text-white border-blue-500",
276+
className: "bg-sky-600 hover:bg-sky-700 text-white",
277277
},
278278
};
279279

@@ -318,7 +318,10 @@ function DeployButton({
318318
<ActionBarButton
319319
onClick={onClick}
320320
disabled={disabled}
321-
className="bg-blue-600 hover:bg-blue-700 text-white border-blue-600"
321+
className={cn(
322+
"bg-blue-600 hover:bg-blue-700 text-white",
323+
// Adjust if specific disabled styling for DeployButton is needed beyond ActionBarButton's default
324+
)}
322325
tooltipSide="bottom"
323326
tooltip={<p>Deploy Workflow</p>}
324327
>
@@ -338,6 +341,7 @@ function SidebarToggle({ onClick, isSidebarVisible }: SidebarToggleProps) {
338341
onClick={onClick}
339342
tooltipSide="bottom"
340343
tooltip={<p>{isSidebarVisible ? "Hide Sidebar" : "Show Sidebar"}</p>}
344+
className="bg-neutral-500 hover:bg-neutral-600 text-white"
341345
>
342346
{isSidebarVisible ? (
343347
<PanelLeftClose className="!size-4 rotate-180" />
@@ -367,7 +371,7 @@ function OutputsToggle({
367371
<ActionBarButton
368372
onClick={onClick}
369373
disabled={disabled}
370-
className="bg-neutral-500 hover:bg-neutral-600 text-white border-neutral-500"
374+
className="bg-neutral-500 hover:bg-neutral-600 text-white"
371375
tooltipSide="bottom"
372376
tooltip={<p>{tooltipText}</p>}
373377
>
@@ -388,7 +392,7 @@ function FitToScreenButton({
388392
return (
389393
<ActionBarButton
390394
onClick={onClick}
391-
className="bg-neutral-500 hover:bg-neutral-600 text-white border-neutral-500"
395+
className="bg-neutral-500 hover:bg-neutral-600 text-white"
392396
tooltipSide="right"
393397
tooltip={<p>Fit to Screen</p>}
394398
>
@@ -408,7 +412,7 @@ function DeleteButton({
408412
<ActionBarButton
409413
onClick={onClick}
410414
disabled={disabled}
411-
className="bg-red-500 hover:bg-red-600 text-white border-red-500"
415+
className="bg-red-600 hover:bg-red-700 text-white"
412416
tooltipSide="right"
413417
tooltip={<p>Delete Selected</p>}
414418
>
@@ -428,7 +432,7 @@ function EditLabelButton({
428432
<ActionBarButton
429433
onClick={onClick}
430434
disabled={disabled}
431-
className="bg-blue-500 hover:bg-blue-600 text-white border-blue-500"
435+
className="bg-sky-500 hover:bg-sky-600 text-white"
432436
tooltipSide="right"
433437
tooltip={<p>Edit Label</p>}
434438
>
@@ -448,7 +452,7 @@ function ApplyLayoutButton({
448452
<ActionBarButton
449453
onClick={onClick}
450454
disabled={disabled}
451-
className="bg-purple-500 hover:bg-purple-600 text-white border-purple-500"
455+
className="bg-neutral-500 hover:bg-neutral-600 text-white"
452456
tooltipSide="right"
453457
tooltip={<p>Reorganize Layout</p>}
454458
>
@@ -469,7 +473,7 @@ function AddNodeButton({
469473
onClick={onClick}
470474
disabled={disabled}
471475
tooltip="Add Node"
472-
className="size-10 !p-0"
476+
className="size-10 !p-0 bg-blue-600 hover:bg-blue-700 text-white"
473477
tooltipSide="right"
474478
>
475479
<Plus className="!size-5" />

0 commit comments

Comments
 (0)