Skip to content

Commit

Permalink
fix(edit): change wrong aria-label and add label to preview div (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
SelmaBergstrand authored Jan 23, 2025
1 parent e49e71e commit 778ae91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tavla/app/(admin)/edit/[id]/components/TileCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function TileCard({
}
addToast(`${tile.name} fjernet!`)
}}
aria-label="Slett stoppested"
aria-label="Fjern stoppested"
type="button"
>
<DeleteIcon />
Expand Down
6 changes: 5 additions & 1 deletion tavla/app/(admin)/edit/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ export default async function EditPage(props: TProps) {
/>

<TileList board={board} />
<div data-theme={board.theme ?? 'dark'} className="pt-8">
<div
data-theme={board.theme ?? 'dark'}
className="pt-8"
aria-label="Forhåndsvisning av Tavla"
>
<Preview board={board} organization={organization} />
</div>
</div>
Expand Down

0 comments on commit 778ae91

Please sign in to comment.