Skip to content

Commit 18f8096

Browse files
committed
fix: fix zindex and outline issue
1 parent 70b7963 commit 18f8096

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

app/components/Package/Header.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ 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
254254
:copied="copiedPkgName"
255255
:copy-text="$t('package.copy_name')"
256-
class="flex flex-col items-start min-w-0 z-60"
256+
class="flex flex-col items-start min-w-0"
257257
@click="copyPkgName()"
258258
>
259259
<h1
@@ -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
>
@@ -453,6 +453,10 @@ const likeAction = async () => {
453453
display: none;
454454
}
455455
456+
.packageNav > :global(a:focus-visible) {
457+
outline-offset: -2px !important;
458+
}
459+
456460
@media (max-width: 639.9px) {
457461
.packageNav > :global(a kbd) {
458462
display: none;

0 commit comments

Comments
 (0)