Skip to content

Commit 8a08afd

Browse files
authored
improvement(control-bar): standardize styling across all control bar buttons (#926)
1 parent ebb2546 commit 8a08afd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/components/deployment-controls/deployment-controls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export function DeploymentControls({
9090
onClick={handleDeployClick}
9191
disabled={isDisabled}
9292
className={cn(
93-
'h-12 w-12 rounded-[11px] border-[hsl(var(--card-border))] bg-[hsl(var(--card-background))] text-[hsl(var(--card-text))] shadow-xs',
93+
'h-12 w-12 rounded-[11px] border bg-card text-card-foreground shadow-xs',
9494
'hover:border-[#701FFC] hover:bg-[#701FFC] hover:text-white',
9595
'transition-all duration-200',
9696
isDeployed && 'text-[#802FFF]',
9797
isDisabled &&
98-
'cursor-not-allowed opacity-50 hover:border-[hsl(var(--card-border))] hover:bg-[hsl(var(--card-background))] hover:text-[hsl(var(--card-text))] hover:shadow-xs'
98+
'cursor-not-allowed opacity-50 hover:border hover:bg-card hover:text-card-foreground hover:shadow-xs'
9999
)}
100100
>
101101
{isDeploying ? (

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/components/export-controls/export-controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function ExportControls({ disabled = false }: ExportControlsProps) {
7070
<Tooltip>
7171
<TooltipTrigger asChild>
7272
{isDisabled ? (
73-
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center gap-2 whitespace-nowrap rounded-[11px] border bg-card font-medium text-card-foreground text-sm opacity-50 ring-offset-background transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0'>
73+
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
7474
<Download className='h-5 w-5' />
7575
</div>
7676
) : (

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
412412
return (
413413
<Tooltip>
414414
<TooltipTrigger asChild>
415-
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center gap-2 whitespace-nowrap rounded-[11px] border bg-card font-medium text-card-foreground text-sm opacity-50 ring-offset-background transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0'>
415+
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
416416
<Trash2 className='h-5 w-5' />
417417
</div>
418418
</TooltipTrigger>
@@ -497,7 +497,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
497497
<Tooltip>
498498
<TooltipTrigger asChild>
499499
{isDisabled ? (
500-
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center gap-2 whitespace-nowrap rounded-[11px] border bg-card font-medium text-card-foreground text-sm opacity-50 ring-offset-background transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0'>
500+
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
501501
<Copy className='h-5 w-5' />
502502
</div>
503503
) : (
@@ -561,7 +561,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
561561
<Tooltip>
562562
<TooltipTrigger asChild>
563563
{isDisabled ? (
564-
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center gap-2 whitespace-nowrap rounded-[11px] border bg-card font-medium text-card-foreground text-sm opacity-50 ring-offset-background transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0'>
564+
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
565565
{isAutoLayouting ? (
566566
<RefreshCw className='h-5 w-5 animate-spin' />
567567
) : (
@@ -720,7 +720,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
720720
<Tooltip>
721721
<TooltipTrigger asChild>
722722
{isDisabled ? (
723-
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center gap-2 whitespace-nowrap rounded-[11px] border bg-card font-medium text-card-foreground text-sm opacity-50 ring-offset-background transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0'>
723+
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
724724
<Store className='h-5 w-5' />
725725
</div>
726726
) : (
@@ -771,7 +771,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
771771
className={cn(
772772
'inline-flex h-12 w-12 cursor-not-allowed items-center justify-center',
773773
'rounded-[11px] border bg-card text-card-foreground opacity-50',
774-
'transition-colors [&_svg]:size-4 [&_svg]:shrink-0',
774+
'shadow-xs transition-colors',
775775
isDebugging && 'text-amber-500'
776776
)}
777777
>

0 commit comments

Comments
 (0)