mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
a11y pass
This commit is contained in:
parent
354e1544e4
commit
c9e3795712
@ -8,7 +8,7 @@ const I18nWidget: FC = () => {
|
||||
return (
|
||||
<nav className={s.root}>
|
||||
<Menu>
|
||||
<Menu.Button className={s.button}>
|
||||
<Menu.Button className={s.button} aria-label="Language selector">
|
||||
<img className="" src="/flag-us.png" alt="US Flag" />
|
||||
<span>English</span>
|
||||
<span className="">
|
||||
|
@ -16,12 +16,14 @@ const Searchbar: FC<Props> = ({ className }) => {
|
||||
|
||||
return (
|
||||
<label
|
||||
htmlFor="search"
|
||||
className={cn(
|
||||
'relative text-sm bg-accents-1 text-base w-full transition-colors duration-150',
|
||||
className
|
||||
)}
|
||||
>
|
||||
<input
|
||||
id="search"
|
||||
className={s.input}
|
||||
placeholder="Search for products..."
|
||||
defaultValue={router.query.q}
|
||||
|
@ -42,7 +42,7 @@ const UserNav: FC<Props> = ({ className, children, ...props }) => {
|
||||
<Menu>
|
||||
{({ open }) => (
|
||||
<>
|
||||
<Menu.Button className={s.avatarButton}>
|
||||
<Menu.Button className={s.avatarButton} aria-label="Menu">
|
||||
<Avatar />
|
||||
</Menu.Button>
|
||||
<DropdownMenu open={open} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user