diff --git a/frontend/src/lib/components/SortDropdown.svelte b/frontend/src/lib/components/SortDropdown.svelte index f6b2f7ec..753c82ac 100644 --- a/frontend/src/lib/components/SortDropdown.svelte +++ b/frontend/src/lib/components/SortDropdown.svelte @@ -47,6 +47,20 @@ function toggleDir() { class="-ml-px flex items-center justify-center border border-line bg-muted px-3 py-2.5 text-sm font-bold text-ink-2 transition hover:text-ink focus:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring" aria-label={dir === 'asc' ? m.sort_dir_asc() : m.sort_dir_desc()} > - {dir === 'asc' ? '↑' : '↓'} + {#if dir === 'asc'} + + {:else} + + {/if} diff --git a/frontend/src/lib/components/SortDropdown.svelte.spec.ts b/frontend/src/lib/components/SortDropdown.svelte.spec.ts index 2c4282a8..98b12ac0 100644 --- a/frontend/src/lib/components/SortDropdown.svelte.spec.ts +++ b/frontend/src/lib/components/SortDropdown.svelte.spec.ts @@ -22,15 +22,19 @@ describe('SortDropdown', () => { await expect.element(btn).toBeInTheDocument(); }); - it('direction button shows ↑ when dir is asc', async () => { + it('direction button shows up arrow when dir is asc', async () => { render(SortDropdown, { sort: 'DATE', dir: 'asc' }); - const btn = page.getByRole('button'); - await expect.element(btn).toHaveTextContent('↑'); + await expect.element(page.getByRole('button')).toBeInTheDocument(); + const img = document.querySelector('button img') as HTMLImageElement; + expect(img).not.toBeNull(); + expect(img.src).toContain('Long-Arrow-Up'); }); - it('direction button shows ↓ when dir is desc', async () => { + it('direction button shows down arrow when dir is desc', async () => { render(SortDropdown, { sort: 'DATE', dir: 'desc' }); - const btn = page.getByRole('button'); - await expect.element(btn).toHaveTextContent('↓'); + await expect.element(page.getByRole('button')).toBeInTheDocument(); + const img = document.querySelector('button img') as HTMLImageElement; + expect(img).not.toBeNull(); + expect(img.src).toContain('Long-Arrow-Down'); }); }); diff --git a/frontend/src/routes/briefwechsel/CorrespondenzPersonBar.svelte b/frontend/src/routes/briefwechsel/CorrespondenzPersonBar.svelte index 666c2a07..e1e69ede 100644 --- a/frontend/src/routes/briefwechsel/CorrespondenzPersonBar.svelte +++ b/frontend/src/routes/briefwechsel/CorrespondenzPersonBar.svelte @@ -102,6 +102,7 @@ function handleSuggestionSelect(id: string) { stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" + class="rotate-90" >