fix(PersonHoverCard): move chip colon into DOM for consistent screen reader announcement
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m24s
CI / OCR Service Tests (push) Successful in 29s
CI / Backend Unit Tests (push) Failing after 2m59s
CI / Unit & Component Tests (pull_request) Failing after 3m25s
CI / OCR Service Tests (pull_request) Successful in 38s
CI / Backend Unit Tests (pull_request) Failing after 3m19s
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m24s
CI / OCR Service Tests (push) Successful in 29s
CI / Backend Unit Tests (push) Failing after 2m59s
CI / Unit & Component Tests (pull_request) Failing after 3m25s
CI / OCR Service Tests (pull_request) Successful in 38s
CI / Backend Unit Tests (pull_request) Failing after 3m19s
Replaces CSS ::after { content: ':' } with literal colon inside the
chip-type span. CSS-generated content is announced inconsistently
across NVDA+Chrome and VoiceOver+Safari; a real text node is always
reliable.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -131,7 +131,7 @@ const showMaidenName = $derived(
|
|||||||
<div class="chips" data-testid="person-hover-card-chips">
|
<div class="chips" data-testid="person-hover-card-chips">
|
||||||
{#each familyChips as chip (chip.id)}
|
{#each familyChips as chip (chip.id)}
|
||||||
<span class="chip">
|
<span class="chip">
|
||||||
<span class="chip-type">{chipLabel(chip, personId)}</span>
|
<span class="chip-type">{chipLabel(chip, personId)}:</span>
|
||||||
{otherName(chip, personId)}
|
{otherName(chip, personId)}
|
||||||
</span>
|
</span>
|
||||||
{/each}
|
{/each}
|
||||||
@@ -261,10 +261,6 @@ const showMaidenName = $derived(
|
|||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip-type::after {
|
|
||||||
content: ':';
|
|
||||||
}
|
|
||||||
|
|
||||||
.notes {
|
.notes {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: var(--c-ink-2);
|
color: var(--c-ink-2);
|
||||||
|
|||||||
Reference in New Issue
Block a user