Skip to content

Commit

Permalink
Group hover on grid tile image
Browse files Browse the repository at this point in the history
  • Loading branch information
reinvanhaaren authored Aug 8, 2023
1 parent 74b5a25 commit 2cb028b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/grid/tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function GridTileImage({
return (
<div
className={clsx(
'flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-white hover:border-blue-600 dark:bg-black',
'flex h-full w-full items-center justify-center overflow-hidden rounded-lg border group bg-white hover:border-blue-600 dark:bg-black',
{
relative: label,
'border-2 border-blue-600': active,
Expand All @@ -32,7 +32,7 @@ export function GridTileImage({
// eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
<Image
className={clsx('relative h-full w-full object-contain', {
'transition duration-300 ease-in-out hover:scale-105': isInteractive
'transition duration-300 ease-in-out group-hover:scale-105': isInteractive
})}
{...props}
/>
Expand Down

0 comments on commit 2cb028b

Please sign in to comment.