We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3d5bc7 commit f4ebd5dCopy full SHA for f4ebd5d
frontend/src/components/AlbumGrid.tsx
@@ -11,7 +11,18 @@ interface AlbumProps {
11
12
const AlbumGridEntry: React.FC<AlbumProps> = ({ album, onClickAlbum }) => (
13
<IonCol size="6" sizeMd="4" sizeLg="3" key={album.instance_id}>
14
- <div className="album-art-container" onClick={() => onClickAlbum(album)}>
+ <div
15
+ className="album-art-container"
16
+ role="button"
17
+ tabIndex={0}
18
+ onClick={() => onClickAlbum(album)}
19
+ onKeyDown={(e) => {
20
+ if (e.key === "Enter" || e.key === " ") {
21
+ e.preventDefault()
22
+ onClickAlbum(album)
23
+ }
24
+ }}
25
+ >
26
<img
27
src={album.image_base64 ? album.image_base64 : album.basic_information.thumb}
28
className="album-art"
0 commit comments