Skip to content

Commit

Permalink
fix: make prev and next slides not focusable and aria-hidden
Browse files Browse the repository at this point in the history
But it doesn't work on a video slide, as it re-mounts the container and loses attributes.

Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Nov 18, 2023
1 parent 4af3f4a commit d057cad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
v-bind="previousFile"
:file-list="fileList"
class="viewer__file--hidden viewer__file"
aria-hidden="true"
inert
@error="previousFailed" />
<Error v-else-if="previousFile"
class="hidden-visually"
Expand Down Expand Up @@ -168,6 +170,8 @@
v-bind="nextFile"
:file-list="fileList"
class="viewer__file--hidden viewer__file"
aria-hidden="true"
inert
@error="nextFailed" />
<Error v-else-if="nextFile"
class="hidden-visually"
Expand Down

0 comments on commit d057cad

Please sign in to comment.