Skip to content

Commit

Permalink
fix(AppImage): active hover visuals on focus as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Jun 26, 2024
1 parent ef0a930 commit 6d15c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/AppImage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ a.appImage {
@apply rounded-md pointer-events-none opacity-0 inset-0 absolute bg-white/10 transition-opacity hover:opacity-100;
}

&:hover .name {
&:hover .name,
&:focus .name {
@apply translate-y-0 opacity-100;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const AppImage: FC<Props> = ({ className, app, to }) => {
<div className={styles.name}>{app.name}</div>
</div>
<img src={url} />
<img className="blur-none group-hover:blur absolute inset-0 -z-10 transition-all" src={url} />
<img className="blur-none group-hover:blur group-focus:blur absolute inset-0 -z-10 transition-all" src={url} />
</Link>
) : (
<div className={cn(styles.appImage, className)}>
Expand Down

0 comments on commit 6d15c8a

Please sign in to comment.