fix(docs-infra): prevent tab labels from being clipped

The active docs tab applied a 2px bottom border that inactive tabs lacked,
which shrank the active label's content box and clipped its descenders. It
also set `line-height: 1.5` only on the active label, so switching tabs
nudged the text. Reserve the border as transparent on every tab and recolor
it on the active one, and share the label `line-height`, so the letters are
no longer cut and the label stays put when switching.
This commit is contained in:
Kam
2026-07-03 22:31:29 +03:00
committed by Leon Senft
parent 205acb3494
commit 12a4e60a4a
+2 -3
View File
@@ -310,16 +310,15 @@
.mdc-tab {
padding-inline: 15px !important;
border-block-end: 2px solid transparent;
}
.mdc-tab__text-label {
transition: none;
line-height: 1.5;
}
.mdc-tab--active {
border: 0;
border-block-end-width: 2px;
border-style: solid;
border-image: var(--purple-to-blue-horizontal-gradient) 1;
.mdc-tab__text-label {