4
0
forked from crowetic/commerce

More A11y work

This commit is contained in:
Belen Curcio 2020-11-05 18:23:24 -03:00
parent 1beafd33f1
commit dbc0091732
3 changed files with 7 additions and 4 deletions

View File

@ -84,7 +84,11 @@ const Footer: FC<Props> = ({ className, pages }) => {
</div> </div>
<div className="col-span-1 lg:col-span-6 flex items-start lg:justify-end text-primary"> <div className="col-span-1 lg:col-span-6 flex items-start lg:justify-end text-primary">
<div className="flex space-x-6 items-center h-10"> <div className="flex space-x-6 items-center h-10">
<a href="https://github.com/vercel/commerce" className={s.link}> <a
aria-label="Github Repository"
href="https://github.com/vercel/commerce"
className={s.link}
>
<Github /> <Github />
</a> </a>
<I18nWidget /> <I18nWidget />

View File

@ -22,9 +22,8 @@ const Searchbar: FC<Props> = ({ className, id = 'search' }) => {
className className
)} )}
> >
<label htmlFor={id}> <label>
<input <input
id={id}
className={s.input} className={s.input}
placeholder="Search for products..." placeholder="Search for products..."
defaultValue={router.query.q} defaultValue={router.query.q}

View File

@ -34,7 +34,7 @@ const UserNav: FC<Props> = ({ className, children, ...props }) => {
</li> </li>
<li className={s.item}> <li className={s.item}>
<Link href="/wishlist"> <Link href="/wishlist">
<a onClick={closeSidebarIfPresent}> <a onClick={closeSidebarIfPresent} aria-label="Wishlist">
<Heart /> <Heart />
</a> </a>
</Link> </Link>