diff --git a/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte b/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte index d6b93cceed..d259d4a20e 100644 --- a/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte +++ b/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte @@ -6,10 +6,10 @@ interface Props { label: string - /** Set before the label, holding this component's own label weight while `labelClass` - * emphasises the label alone: the part of the heading that is grammar rather than subject - * stays put, and only what the row is about is lifted. Joined into one accessible name, - * since the two halves are one sentence. */ + /** Set before the label and left unemphasised, so `labelClass` lifts the subject alone: + * the part of the heading that is grammar stays quiet. A step lighter than the row's own + * label weight, because a caller emphasising the label is also setting a proportional + * typeface, whose medium reads heavier than the mono one at this size. */ labelPrefix?: string expanded: boolean onToggle: () => void @@ -59,7 +59,7 @@ highlight && 'text-emphasis' )} > - {#if labelPrefix}{labelPrefix}{labelPrefix} {/if}{label} {/snippet}