fix(ui): De Gruyter long arrows on both sort buttons, rotate swap icon 90°
Replace ↑↓ text with Long-Arrow-Up/Down-MD.svg on the document search SortDropdown and the Briefwechsel sort button. Rotate the swap button SVG 90° so arrows point left/right matching the horizontal person field layout. Refs: #179 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user