Skip to content

Commit

Permalink
Merge pull request #2628 from nextcloud/artonge/fix/aria_cavans
Browse files Browse the repository at this point in the history
fix: Set aria-hidden on the blurhash canvas element
  • Loading branch information
artonge authored Aug 29, 2024
2 parents 7724745 + 87a654c commit 72963cf
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions js/photos-dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-dashboard.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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 72963cf

Please sign in to comment.