mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 17:25:53 +00:00
Disable scrolling to the top when switching between gallery images with arrow buttons (#1139)
This commit is contained in:
parent
9e1388f974
commit
80bb15a7dc
@ -47,11 +47,17 @@ export function Gallery({ images }: { images: { src: string; altText: string }[]
|
|||||||
aria-label="Previous product image"
|
aria-label="Previous product image"
|
||||||
href={previousUrl}
|
href={previousUrl}
|
||||||
className={buttonClassName}
|
className={buttonClassName}
|
||||||
|
scroll={false}
|
||||||
>
|
>
|
||||||
<ArrowLeftIcon className="h-5" />
|
<ArrowLeftIcon className="h-5" />
|
||||||
</Link>
|
</Link>
|
||||||
<div className="mx-1 h-6 w-px bg-neutral-500"></div>
|
<div className="mx-1 h-6 w-px bg-neutral-500"></div>
|
||||||
<Link aria-label="Next product image" href={nextUrl} className={buttonClassName}>
|
<Link
|
||||||
|
aria-label="Next product image"
|
||||||
|
href={nextUrl}
|
||||||
|
className={buttonClassName}
|
||||||
|
scroll={false}
|
||||||
|
>
|
||||||
<ArrowRightIcon className="h-5" />
|
<ArrowRightIcon className="h-5" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user