diff --git a/frontend/src/lib/components/MentionDropdown.svelte b/frontend/src/lib/components/MentionDropdown.svelte index acfaae49..5090b0bc 100644 --- a/frontend/src/lib/components/MentionDropdown.svelte +++ b/frontend/src/lib/components/MentionDropdown.svelte @@ -127,7 +127,10 @@ function selectItem(item: Person) {
{ }), CustomMention.configure({ renderHTML({ node }) { + // Underline color matches the read-mode .person-mention rule + // (ink at ~50% alpha) — brand-mint on white fails WCAG 1.4.11 + // Non-Text Contrast (≈1.7:1, needs 3:1). Leonie #5621. return [ 'span', { @@ -110,7 +113,7 @@ onMount(() => { 'data-person-id': node.attrs.personId, 'data-display-name': node.attrs.displayName, class: - 'mention-token underline decoration-brand-mint underline-offset-2 text-brand-navy font-medium' + 'mention-token underline decoration-ink/50 underline-offset-2 text-brand-navy font-medium' }, `@${node.attrs.displayName}` ];