mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
add aria-label to ProductCard's anchor tag
Without an aria-label it is unclear for what text to be read in this situation. macOS's voiceover reads all contents of the ProductCard which is quite confusing on multiple levels
This commit is contained in:
parent
1c3bd853fb
commit
1f5a65086f
@ -23,7 +23,10 @@ const ProductCard: FC<Props> = ({
|
||||
...props
|
||||
}) => (
|
||||
<Link href={`/product/${product.slug}`} {...props}>
|
||||
<a className={cn(s.root, { [s.simple]: variant === 'simple' }, className)}>
|
||||
<a
|
||||
aria-label={product.name}
|
||||
className={cn(s.root, { [s.simple]: variant === 'simple' }, className)}
|
||||
>
|
||||
{variant === 'slim' ? (
|
||||
<div className="relative overflow-hidden box-border">
|
||||
<div className="absolute inset-0 flex items-center justify-end mr-8 z-20">
|
||||
|
Loading…
x
Reference in New Issue
Block a user