Skip to content

Commit

Permalink
Fix the skip-to-content button (#4336)
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
obulat authored May 17, 2024
1 parent 0dbe130 commit 30f1df1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/VSkipToContentButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
as="a"
variant="filled-pink"
size="medium"
class="skip-button z-50 focus:fixed focus:absolute focus:ms-2 focus:mt-2"
class="skip-button top-2 z-50 max-w-max focus:absolute focus:left-2 focus:right-2 focus-visible:absolute focus-visible:left-2 focus-visible:right-2"
>{{ $t("skipToContent") }}
</VButton>
</template>
Expand All @@ -24,7 +24,7 @@ export default {
}
</script>
<style scoped>
.skip-button:not(:focus) {
.skip-button:not(:focus-visible) {
@apply sr-only;
}
</style>
2 changes: 1 addition & 1 deletion frontend/src/layouts/content-layout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="relative">
<VSkipToContentButton />
<div
class="app min-h-dyn-screen grid grid-cols-1 grid-rows-[auto,1fr] bg-white"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="relative">
<VSkipToContentButton />
<div
class="app h-dyn-screen grid grid-cols-1 grid-rows-[auto,1fr] flex-col bg-yellow"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layouts/search-layout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="relative">
<VSkipToContentButton />
<div
class="app h-dyn-screen min-h-dyn-screen grid grid-rows-[auto,1fr] bg-white"
Expand Down

0 comments on commit 30f1df1

Please sign in to comment.