Skip to content

Commit 75f41f4

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(emcn): preserve outlined workflow inline chips
1 parent 5616934 commit 75f41f4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import { cn } from '../../lib/cn'
2525
* when it sits *on* a `--surface-5` input, combobox trigger, or tag container.
2626
* - `gray` — a light surface over a slightly darker inset ring with muted
2727
* `--text-secondary` text for low-emphasis status labels.
28+
* - `workflow-inline` — an outlined slot embedded in workflow summary text.
29+
* Its inset ring preserves the text flow and dimensions when a placeholder
30+
* becomes a value. The surface and outline follow the workspace theme.
2831
* - `solid` — a filled inverse tag: a dark neutral surface (`--text-secondary`)
2932
* with inverse text (`--text-inverse`), mirroring {@link Chip}'s `primary`
3033
* inverse-surface convention one step softer than near-black. For eyebrow
@@ -70,6 +73,8 @@ const chipTagVariants = cva(
7073
field:
7174
'h-5 gap-[3px] px-1 bg-[var(--surface-6)] text-[var(--text-primary)] dark:bg-[var(--surface-3)]',
7275
gray: 'h-5 gap-[3px] px-1 border border-[var(--border-1)] bg-[var(--surface-5)] text-[var(--text-secondary)]',
76+
'workflow-inline':
77+
'h-5 gap-[3px] px-1 bg-[var(--surface-2)] text-[var(--text-primary)] shadow-[inset_0_0_0_1px_var(--border-1)]',
7378
solid: 'h-5 gap-[3px] px-1 bg-[var(--text-secondary)] text-[var(--text-inverse)]',
7479
workflow: 'h-5 gap-[3px] px-1',
7580
brand: 'h-5 gap-[3px] px-1',

‎packages/workflow-renderer/src/workflow-block/inline-chip.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface InlineChipProps {
1919
export function InlineChip({ children, muted }: InlineChipProps) {
2020
return (
2121
<ChipTag
22-
variant='gray'
22+
variant='workflow-inline'
2323
className={cn(
2424
'max-w-[160px] translate-y-[-1px] align-middle',
2525
muted && 'text-[var(--text-muted)]'

0 commit comments

Comments
 (0)