Skip to content

Commit 66bfb91

Browse files
committed
fix(workflow): align content block ink
1 parent a49c532 commit 66bfb91

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

apps/sim/lib/workflows/blocks/workflow-block-view-interaction.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ describe('WorkflowTypeTag colors', () => {
221221

222222
expect(host.querySelector('[data-workflow-type-icon="knowledge"]')).toHaveClass(
223223
'bg-[#B4B4B4]',
224-
'text-[#FFFFFF]'
224+
'text-[#1A1A1A]'
225225
)
226226
expect(host.querySelector('[data-workflow-type-icon="image_generator_v2"]')).toHaveClass(
227227
'bg-[#AA00FF]',

packages/emcn/src/components/chip-tag/chip-tag.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ import { cn } from '../../lib/cn'
3535
*
3636
* These are fixed brand values, not derived ones — do not "correct" a hex
3737
* for contrast or gamut. Labels use `#F8F8F8` on dark semantic fills and
38-
* `#1A1A1A` on light fills; the neutral content tone uses true white
39-
* (`#FFFFFF`) on `#B4B4B4`. `#3B3B3B` appears only as `inverse`'s fill,
38+
* `#1A1A1A` on light fills. `#3B3B3B` appears only as `inverse`'s fill,
4039
* never as text. One value serves both modes; the tones carry no `dark:`
4140
* overrides.
4241
*
43-
* Contrast against the paired ink varies, and three pairs sit under WCAG AA
44-
* (4.5:1) for normal text: `green` at 3.98:1, `content` at 2.07:1, and
45-
* `orange` at 3.15:1. These are brand decisions rather than oversights.
42+
* Contrast against the paired ink varies, and two pairs sit under WCAG AA
43+
* (4.5:1) for normal text: `green` at 3.98:1 and `orange` at 3.15:1. These
44+
* are brand decisions rather than oversights.
4645
* Because the label is short and always duplicated by an icon and the block
4746
* name beside it, the tag is a redundant cue rather than the sole carrier of
4847
* the information — but do not reuse these pairings anywhere the label
@@ -114,7 +113,7 @@ const chipTagVariants = cva(
114113
{ variant: 'workflow', tone: 'green', className: 'bg-[#188F00] text-[#F8F8F8]' },
115114
{ variant: 'workflow', tone: 'yellow', className: 'bg-[#FFEF08] text-[#1A1A1A]' },
116115
{ variant: 'workflow', tone: 'purple', className: 'bg-[#AA00FF] text-[#F8F8F8]' },
117-
{ variant: 'workflow', tone: 'content', className: 'bg-[#B4B4B4] text-[#FFFFFF]' },
116+
{ variant: 'workflow', tone: 'content', className: 'bg-[#B4B4B4] text-[#1A1A1A]' },
118117
{ variant: 'brand', brandForeground: 'light', className: 'text-[#FFFFFF]' },
119118
{ variant: 'brand', brandForeground: 'dark', className: 'text-[#000000]' },
120119
],

0 commit comments

Comments
 (0)