Skip to content

Commit c70c8ef

Browse files
committed
fix(whitelabeling): use brand-accent as color fallback when workspace color is undefined
1 parent a3c959e commit c70c8ef

File tree

1 file changed

+5
-3
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workspace-header

1 file changed

+5
-3
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workspace-header/workspace-header.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export function WorkspaceHeader({
360360
{activeWorkspaceFull ? (
361361
<div
362362
className='flex h-[20px] w-[20px] flex-shrink-0 items-center justify-center rounded-sm font-medium text-caption text-white leading-none'
363-
style={{ backgroundColor: activeWorkspaceFull.color ?? '#6b7280' }}
363+
style={{ backgroundColor: activeWorkspaceFull.color ?? 'var(--brand-accent)' }}
364364
>
365365
{workspaceInitial}
366366
</div>
@@ -406,7 +406,9 @@ export function WorkspaceHeader({
406406
{activeWorkspaceFull ? (
407407
<div
408408
className='flex h-[32px] w-[32px] flex-shrink-0 items-center justify-center rounded-md font-medium text-caption text-white'
409-
style={{ backgroundColor: activeWorkspaceFull.color ?? '#6b7280' }}
409+
style={{
410+
backgroundColor: activeWorkspaceFull.color ?? 'var(--brand-accent)',
411+
}}
410412
>
411413
{workspaceInitial}
412414
</div>
@@ -588,7 +590,7 @@ export function WorkspaceHeader({
588590
{activeWorkspaceFull ? (
589591
<div
590592
className='flex h-[20px] w-[20px] flex-shrink-0 items-center justify-center rounded-sm font-medium text-caption text-white leading-none'
591-
style={{ backgroundColor: activeWorkspaceFull.color ?? '#6b7280' }}
593+
style={{ backgroundColor: activeWorkspaceFull.color ?? 'var(--brand-accent)' }}
592594
>
593595
{workspaceInitial}
594596
</div>

0 commit comments

Comments
 (0)