Skip to content

Commit

Permalink
Adds group hover on grid tile image + labels (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
reinvanhaaren authored Aug 8, 2023
1 parent 5f2348d commit ec838fd
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',
'group flex h-full w-full items-center justify-center overflow-hidden rounded-lg border 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

1 comment on commit ec838fd

@vercel
Copy link

@vercel vercel bot commented on ec838fd Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.