Skip to content

Commit ff7d91e

Browse files
andresdjassoclaude
authored andcommitted
improvement(tables): make the selected cell opaque and a shade darker
The ring mixed `--text-secondary` into `transparent`, so the grid rules running underneath showed through its own stroke. Mixing into `--bg` instead holds the same apparent value while staying opaque, and still inverts with the theme. Raised 32% -> 46% so it reads as chrome rather than more content, and added a stacking context: neighbouring cells are later siblings, so their rules were painting over the ring's right and bottom edges. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7f1e4ab commit ff7d91e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state

apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/tables-empty-state.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ import { EmptyState } from '@/components/empty-state/empty-state'
1212
const INK = {
1313
header: 'color-mix(in srgb, var(--text-secondary) 30%, transparent)',
1414
cell: 'color-mix(in srgb, var(--text-secondary) 15%, transparent)',
15-
selection: 'color-mix(in srgb, var(--text-secondary) 32%, transparent)',
15+
/**
16+
* Mixed into `--bg` rather than `transparent`: a translucent ring lets the
17+
* grid rules underneath show through its own stroke. Opaque, and darker than
18+
* the ink it surrounds so it reads as chrome rather than more content.
19+
*/
20+
selection: 'color-mix(in srgb, var(--text-secondary) 46%, var(--bg))',
1621
} as const
1722

1823
/**
@@ -78,7 +83,7 @@ function TablesGraphic() {
7883
/>
7984
{rowIndex === SELECTED_CELL.row && column === SELECTED_CELL.column ? (
8085
<span
81-
className='absolute inset-[-1px] rounded-[3px] border-[1.5px]'
86+
className='absolute inset-[-1px] z-10 rounded-[3px] border-[1.5px]'
8287
style={{ borderColor: INK.selection }}
8388
/>
8489
) : null}

0 commit comments

Comments
 (0)