Skip to content

Commit e84a46a

Browse files
authored
Fix OpenAPI tabs indicator overflow (#3032)
1 parent 18a72d4 commit e84a46a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/cyan-experts-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Fix OpenAPI tabs indicator overflow

packages/gitbook/src/components/DocumentView/OpenAPI/style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521

522522
/* Tabs */
523523
.openapi-tabs-list {
524-
@apply flex flex-row gap-1.5 py-1.5 px-2.5 border-b border-tint-subtle w-full overflow-x-scroll;
524+
@apply flex flex-row gap-1.5 py-1.5 px-2.5 w-full overflow-x-scroll;
525525
scrollbar-width: none;
526526
-ms-overflow-style: none;
527527
}
@@ -531,11 +531,12 @@
531531
}
532532

533533
.openapi-tabs-tab[aria-selected="true"] {
534-
@apply text-primary after:absolute after:-bottom-2 after:left-0 after:w-full after:h-px after:bg-primary-solid after:transition-all;
534+
@apply text-primary after:absolute after:-bottom-[calc(0.375rem_+_1px)] after:z-20 after:left-0 after:w-full after:h-px after:bg-primary-solid after:transition-all;
535535
}
536536

537537
.openapi-tabs-panel {
538-
@apply flex-1 text-sm focus-visible:outline-none;
538+
@apply flex-1 text-sm relative focus-visible:outline-none;
539+
@apply before:w-full before:h-px before:absolute before:bg-tint-6 before:-top-px before:z-10;
539540
}
540541

541542
.openapi-tabs-footer {

0 commit comments

Comments
 (0)