Skip to content

Commit 6e6ff57

Browse files
committed
style(nav): align secondary tab and active nav with figma
Update SecondaryTabNav to the Temp/Tablist design with a glacier-mist-800 track, white active pill, and canyon-clay text. Add semibold weight to the main nav active link.
1 parent 014279a commit 6e6ff57

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/v1/styles/components-nav.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
@apply flex items-center gap-2 px-3 py-1.5 font-normal opacity-60 hover:opacity-80;
6161

6262
&.link--active {
63-
@apply text-canyon-clay---links rounded-md bg-white opacity-100 hover:opacity-80;
63+
@apply text-canyon-clay---links rounded-md bg-white font-semibold opacity-100 hover:opacity-80;
6464
}
6565
}
6666
}

src/v1/styles/components-secondary-tab-nav.css

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
.secondary-tab-nav-mobile-selected {
25-
@apply datum-text-sm text-midnight-fjord shrink-0 font-semibold;
25+
@apply datum-text-sm text-canyon-clay---links shrink-0 font-semibold;
2626
}
2727

2828
.secondary-tab-nav-mobile-chevron {
@@ -42,31 +42,32 @@
4242
}
4343

4444
.secondary-tab-nav-mobile-link {
45-
@apply datum-text-sm text-midnight-fjord/60 mx-2 flex items-center gap-2 rounded-sm px-4 py-3 font-medium no-underline;
46-
@apply hover:bg-glacier-mist-700/50 hover:text-midnight-fjord/80;
45+
@apply datum-text-sm text-midnight-fjord/60 mx-2 flex items-center gap-2 rounded-md px-4 py-3 font-medium no-underline;
46+
@apply hover:text-midnight-fjord/80;
4747

4848
&--active {
49-
@apply bg-glacier-mist-900 text-midnight-fjord font-semibold;
50-
@apply hover:bg-glacier-mist-900 hover:text-midnight-fjord;
49+
@apply text-canyon-clay---links bg-white font-semibold;
50+
@apply hover:text-canyon-clay---links hover:bg-white;
5151
}
5252
}
5353

54-
/* Track color on the list avoids a white→gray flash before tab backgrounds paint */
5554
.secondary-tab-nav__list {
56-
@apply md:border-glacier-mist-900 md:bg-glacier-mist-700 m-0 hidden list-none p-0 md:inline-flex md:overflow-hidden md:rounded-md md:border;
55+
@apply bg-glacier-mist-800 m-0 hidden list-none gap-0 p-0.5 md:inline-flex md:overflow-hidden md:rounded-lg;
56+
5757
li {
58-
@apply last:[&>a]:border-r-0;
58+
@apply m-0 p-0;
5959
}
6060
}
6161

6262
.secondary-tab-nav__tab {
63-
@apply datum-text-sm text-midnight-fjord/60 border-glacier-mist-900 inline-flex items-center justify-center border-r bg-transparent px-6 py-1.25 font-medium no-underline;
64-
@apply hover:bg-glacier-mist-700/40 hover:text-midnight-fjord/75;
63+
@apply datum-text-sm text-midnight-fjord/60 inline-flex items-center justify-center rounded-md bg-transparent font-medium no-underline;
64+
@apply hover:text-midnight-fjord/80;
6565
@apply focus-visible:ring-midnight-fjord/30 focus-visible:relative focus-visible:z-10 focus-visible:ring-2 focus-visible:outline-none focus-visible:ring-inset;
66+
@apply px-6 py-1.5;
6667
}
6768

6869
.secondary-tab-nav__tab--active {
69-
@apply bg-glacier-mist-900 text-midnight-fjord font-semibold;
70-
@apply hover:bg-glacier-mist-900 hover:text-midnight-fjord;
70+
@apply text-canyon-clay---links bg-white font-semibold;
71+
@apply hover:text-canyon-clay---links hover:bg-white;
7172
}
7273
}

0 commit comments

Comments
 (0)