Skip to content

Commit 03c385e

Browse files
committed
style(sidebar): align legal and handbook active states with figma
Replace glacier-mist active pills with white backgrounds and canyon-clay text on legal sidenav items and handbook child menu links.
1 parent 73baeb5 commit 03c385e

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

src/v1/styles/components-handbook.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
@apply transition-colors duration-200 hover:bg-gray-50;
112112

113113
.sidebar-mobile-toggle--text {
114-
@apply text-midnight-fjord datum-text-base;
114+
@apply text-canyon-clay---links datum-text-base font-semibold;
115115
}
116116

117117
.sidebar-mobile-toggle--icon {
@@ -179,11 +179,12 @@
179179
}
180180

181181
.handbook-sidebar .menu-link {
182-
@apply text-midnight-fjord/80 hover:text-midnight-fjord datum-text-sm transition-colors duration-200 ease-out;
183-
@apply inline-block w-full px-2 py-1;
182+
@apply datum-text-sm text-midnight-fjord/60 inline-block w-full rounded-md p-2 font-medium transition-colors duration-150;
183+
@apply hover:text-midnight-fjord/80;
184184
}
185185

186186
.handbook-sidebar .menu-link--active {
187-
@apply bg-glacier-mist-800 text-midnight-fjord font-semibold;
187+
@apply text-canyon-clay---links bg-white font-semibold;
188+
@apply hover:text-canyon-clay---links hover:bg-white;
188189
}
189190
}

src/v1/styles/page-legal.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,27 @@
2828
}
2929

3030
.legal-sidenav-item {
31-
@apply datum-text-sm text-midnight-fjord/60 hover:text-midnight-fjord block rounded-md px-2 py-2 font-medium transition-colors duration-150;
31+
@apply datum-text-sm text-midnight-fjord/60 block rounded-md p-2 font-medium transition-colors duration-150;
32+
@apply hover:text-midnight-fjord/80;
3233

3334
&.legal-sidenav-item--active {
34-
@apply bg-glacier-mist-800 text-midnight-fjord font-semibold opacity-100;
35+
@apply text-canyon-clay---links bg-white font-semibold;
36+
@apply hover:text-canyon-clay---links hover:bg-white;
3537
}
3638

3739
/* Mobile only: match brand nav dropdown style */
3840
@media (max-width: 767px) {
39-
@apply datum-text-base text-midnight-fjord rounded-none px-3 py-1;
41+
@apply datum-text-base text-midnight-fjord/60 rounded-md px-3 py-2;
4042

4143
&:hover {
42-
@apply text-canyon-clay---links;
44+
@apply text-midnight-fjord/80;
4345
}
4446

4547
&.legal-sidenav-item--active {
46-
@apply text-canyon-clay---links bg-transparent;
48+
@apply text-canyon-clay---links bg-white font-semibold;
4749

4850
&:hover {
49-
@apply text-midnight-fjord;
51+
@apply text-canyon-clay---links bg-white;
5052
}
5153
}
5254
}

0 commit comments

Comments
 (0)