Skip to content

Commit 82ab52c

Browse files
authored
fix: fix zindex issue of button in header (#2081)
1 parent 8da9e96 commit 82ab52c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/components/Package/Header.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const likeAction = async () => {
247247

248248
<template>
249249
<!-- Package header -->
250-
<header class="bg-bg pt-5 w-full container">
250+
<header class="bg-bg pt-5 pb-1 w-full container">
251251
<!-- Package name and version -->
252252
<div class="flex items-baseline justify-between gap-x-2 gap-y-1 flex-wrap min-w-0">
253253
<CopyToClipboardButton
@@ -319,7 +319,7 @@ const likeAction = async () => {
319319
</header>
320320
<div
321321
ref="header"
322-
class="w-full bg-bg sticky top-14 z-50 border-b border-border pt-2"
322+
class="w-full bg-bg sticky top-14 z-10 border-b border-border pt-2"
323323
:class="[$style.packageHeader]"
324324
data-testid="package-subheader"
325325
>
@@ -395,7 +395,7 @@ const likeAction = async () => {
395395
v-if="mainLink"
396396
:to="mainLink"
397397
aria-keyshortcuts="m"
398-
class="decoration-none border-b-2 p-1 hover:border-accent/50 lowercase"
398+
class="decoration-none border-b-2 p-1 hover:border-accent/50 lowercase focus-visible:[outline-offset:-2px]!"
399399
:class="page === 'main' ? 'border-accent text-accent!' : 'border-transparent'"
400400
>
401401
{{ $t('package.links.main') }}
@@ -404,7 +404,7 @@ const likeAction = async () => {
404404
v-if="docsLink"
405405
:to="docsLink"
406406
aria-keyshortcuts="d"
407-
class="decoration-none border-b-2 p-1 hover:border-accent/50"
407+
class="decoration-none border-b-2 p-1 hover:border-accent/50 focus-visible:[outline-offset:-2px]!"
408408
:class="page === 'docs' ? 'border-accent text-accent!' : 'border-transparent'"
409409
>
410410
{{ $t('package.links.docs') }}
@@ -413,7 +413,7 @@ const likeAction = async () => {
413413
v-if="codeLink"
414414
:to="codeLink"
415415
aria-keyshortcuts="."
416-
class="decoration-none border-b-2 p-1 hover:border-accent/50"
416+
class="decoration-none border-b-2 p-1 hover:border-accent/50 focus-visible:[outline-offset:-2px]!"
417417
:class="page === 'code' ? 'border-accent text-accent!' : 'border-transparent'"
418418
>
419419
{{ $t('package.links.code') }}
@@ -423,7 +423,7 @@ const likeAction = async () => {
423423
:to="diffLink"
424424
:title="$t('compare.compare_versions_title')"
425425
aria-keyshortcuts="f"
426-
class="decoration-none border-b-2 p-1 hover:border-accent/50"
426+
class="decoration-none border-b-2 p-1 hover:border-accent/50 focus-visible:[outline-offset:-2px]!"
427427
:class="page === 'diff' ? 'border-accent text-accent!' : 'border-transparent'"
428428
>
429429
{{ $t('compare.compare_versions') }}

0 commit comments

Comments
 (0)