Skip to content

Commit

Permalink
Fix ARIA role errors in toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
gomander committed Jan 24, 2024
1 parent 1289144 commit 4916cd1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/lib/components/Toolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
}>()
</script>

<header
class="px-4 py-2 bg-surface-200-700-token shadow-2xl flex justify-between items-center"
role="menubar"
aria-label="Toolbar"
>
<header class="px-4 py-2 bg-surface-200-700-token shadow-2xl flex justify-between items-center">
<a href="/">
<h1 class="text-2xl">SvelteWheel</h1>
</a>
Expand All @@ -30,7 +26,6 @@
<button
class="btn btn-icon-sm text-xl hover:variant-soft-primary"
use:popup={{ event: 'click', target: 'mobileMenu' }}
role="menuitem"
aria-haspopup="menu"
aria-controls="mobileMenu"
aria-label="Toggle menu"
Expand Down Expand Up @@ -58,7 +53,11 @@
</div>
</div>

<div class="hidden lg:flex items-center">
<div
class="hidden lg:flex items-center"
role="menubar"
aria-label="Toolbar"
>
{#if !$fullscreenStore.active}
<button
class="btn btn-icon-sm text-lg hover:variant-soft-primary"
Expand Down

0 comments on commit 4916cd1

Please sign in to comment.