Skip to content

Commit

Permalink
fix: aria tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Sep 14, 2024
1 parent ab58552 commit 3cbbd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/[...slug]/Burger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ComponentProps } from 'react'

export function Burger({ opened, className }: { opened: boolean } & ComponentProps<'span'>) {
return (
<span className={cn(className, 'flex size-9 items-center justify-center')} aria-label="Menu">
<span className={cn(className, 'flex size-9 items-center justify-center')}>
{opened ? <Icon icon="close" /> : <Icon icon="menu" />}
</span>
)
Expand Down
2 changes: 1 addition & 1 deletion src/app/[...slug]/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function Menu({ children, ...props }: ComponentProps<typeof Dialog.Conten

return (
<Dialog.Root open={opened} onOpenChange={setOpened}>
<Dialog.Trigger>
<Dialog.Trigger aria-label="Menu">
<Burger opened={opened} className="lg:hidden" />
</Dialog.Trigger>
<Dialog.Content {...props}>
Expand Down

0 comments on commit 3cbbd35

Please sign in to comment.