From 2e91fc5a7509b88efaa7026f8a50eb36f5ca8bbf Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 22 Aug 2023 11:41:06 +0200 Subject: [PATCH] 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 --- src/views/Viewer.vue | 126 +++++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index c225293fc..8fa2a3376 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -113,65 +113,76 @@
- +
+ +
- - + class="viewer__file-wrapper hidden-visually" + aria-hidden="true" + inert> + + +
- - +
+ + +
- - + class="viewer__file-wrapper hidden-visually" + aria-hidden="true" + inert> + + + @@ -1234,7 +1245,11 @@ export default { } &__content { - // center views + width: 100%; + height: 100%; + } + + &__file-wrapper { display: flex; align-items: center; justify-content: center; @@ -1245,13 +1260,6 @@ export default { &__file { transition: height 100ms ease, width 100ms ease; - - // display on page but make it invisible - &--hidden { - position: absolute; - z-index: -1; - left: -10000px; - } } &.theme--dark:deep(.button-vue--vue-tertiary) {