Skip to content

Commit d057cad

Browse files
committed
fix: make prev and next slides not focusable and aria-hidden
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]>
1 parent 4af3f4a commit d057cad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/views/Viewer.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
v-bind="previousFile"
137137
:file-list="fileList"
138138
class="viewer__file--hidden viewer__file"
139+
aria-hidden="true"
140+
inert
139141
@error="previousFailed" />
140142
<Error v-else-if="previousFile"
141143
class="hidden-visually"
@@ -168,6 +170,8 @@
168170
v-bind="nextFile"
169171
:file-list="fileList"
170172
class="viewer__file--hidden viewer__file"
173+
aria-hidden="true"
174+
inert
171175
@error="nextFailed" />
172176
<Error v-else-if="nextFile"
173177
class="hidden-visually"

0 commit comments

Comments
 (0)