fix(join): add accessible name to permissions list in HouseholdIdentityPanel
The <ul> had no programmatic association to its visible label. Screen readers could not announce what the list represents. Add aria-label="Als Mitglied kannst du" directly on the <ul>. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<p class="mb-2 font-[var(--font-sans)] text-[11px] font-medium uppercase tracking-wide text-[var(--green-light)]">
|
||||
Als Mitglied kannst du
|
||||
</p>
|
||||
<ul class="flex flex-col gap-1.5">
|
||||
<ul aria-label="Als Mitglied kannst du" class="flex flex-col gap-1.5">
|
||||
<li class="flex items-center gap-2 font-[var(--font-sans)] text-[13px] text-white">
|
||||
<span class="font-semibold text-[var(--green-light)]" aria-hidden="true">✓</span>
|
||||
Wochenplan einsehen
|
||||
|
||||
@@ -31,4 +31,11 @@ describe('HouseholdIdentityPanel', () => {
|
||||
});
|
||||
expect(screen.getByText('🥗')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('permissions list has accessible name', () => {
|
||||
render(HouseholdIdentityPanel, {
|
||||
props: { householdName: 'Smith family', inviterName: 'Sarah' }
|
||||
});
|
||||
expect(screen.getByRole('list', { name: /als mitglied kannst du/i })).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user