From 36baffb5fea694d0f3917532478d5b10190b9bbe 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 | 128 ++++++++++++++++++++++++------------------- 1 file changed, 71 insertions(+), 57 deletions(-) diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index c225293fc..8e39a15a3 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -113,65 +113,75 @@
- +
+ +
- - + class="viewer__file-wrapper viewer__file-wrapper--hidden" + aria-hidden="true" + inert> + + +
- - +
+ + +
- - + class="viewer__file-wrapper viewer__file-wrapper--hidden" + aria-hidden="true" + inert> + + + @@ -1234,17 +1244,16 @@ export default { } &__content { - // center views + width: 100%; + height: 100%; + } + + &__file-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; - } - - &__file { - transition: height 100ms ease, - width 100ms ease; // display on page but make it invisible &--hidden { @@ -1254,6 +1263,11 @@ export default { } } + &__file { + transition: height 100ms ease, + width 100ms ease; + } + &.theme--dark:deep(.button-vue--vue-tertiary) { &:hover { background-color: rgba(255, 255, 255, .08) !important;