mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 22:16:58 +00:00
make border hover volor the default
This commit is contained in:
parent
abf511fede
commit
01f02952fd
@ -7,13 +7,11 @@ export function GridTileImage({
|
||||
active,
|
||||
labelPosition,
|
||||
labels,
|
||||
hoverBorder,
|
||||
...props
|
||||
}: {
|
||||
isInteractive?: boolean;
|
||||
active?: boolean;
|
||||
labelPosition?: 'bottom' | 'center';
|
||||
hoverBorder?: boolean;
|
||||
labels?: {
|
||||
title: string;
|
||||
amount: string;
|
||||
@ -24,11 +22,10 @@ export function GridTileImage({
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
'relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-white dark:bg-black',
|
||||
'relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-white hover:border-blue-600 dark:bg-black',
|
||||
active !== undefined && active
|
||||
? 'border-2 border-blue-600'
|
||||
: 'border-gray-200 dark:border-gray-800',
|
||||
hoverBorder && 'hover:border-blue-600',
|
||||
{
|
||||
relative: labels
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ export default function ProductGridItems({ products }: { products: Product[] })
|
||||
amount: product.priceRange.maxVariantPrice.amount,
|
||||
currencyCode: product.priceRange.maxVariantPrice.currencyCode
|
||||
}}
|
||||
hoverBorder={true}
|
||||
src={product.featuredImage?.url}
|
||||
width={600}
|
||||
height={600}
|
||||
|
Loading…
x
Reference in New Issue
Block a user