Skip to content

Commit

Permalink
fix: Set aria-hidden on the blurhash canvas element
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Aug 29, 2024
1 parent 7724745 commit 76caeea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
<!-- Preload large preview for near visible files -->
<!-- Preload small preview for further away files -->
<template v-if="initialized">
<canvas v-if="hasBlurhash && !loadedSmall && !loadedLarge" ref="canvas" class="file__blurhash" />
<canvas v-if="hasBlurhash && !loadedSmall && !loadedLarge"
ref="canvas"
class="file__blurhash"
aria-hidden="true" />

<img v-if="!loadedLarge && (loadedSmall || (distance < 5 && !errorSmall))"
ref="imgSmall"
Expand Down

0 comments on commit 76caeea

Please sign in to comment.