Skip to content

Commit e326132

Browse files
committed
fix menu styling
1 parent 57f374f commit e326132

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/components/DocsCategoryDropdown/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ const DropdownCaret = () => {
209209
width: "6px",
210210
height: "10px",
211211
fill: "none",
212-
transition: "all 0.3s ease",
213212
color: "#6B7280",
214213
};
215214

src/components/DocsCategoryDropdown/styles.module.css

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
position: relative;
77
display: inline-block;
88
color: var(--ch-nav-v2-link-color);
9-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
10-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
11-
transition-duration: 150ms;
129

1310
&:hover,
1411
&.hover {
@@ -44,9 +41,9 @@
4441
content: "";
4542
position: absolute;
4643
left: 0;
47-
bottom: -5px;
44+
bottom: -30px;
4845
width: 100%;
49-
height: 5px;
46+
height: 30px;
5047
pointer-events: auto;
5148
}
5249

@@ -89,8 +86,12 @@
8986

9087
[data-theme="dark"] .docsNavSelected {
9188
color: #FAFF69;
92-
text-decoration: underline;
93-
text-underline-offset: 4px;
89+
text-decoration: none;
90+
}
91+
92+
[data-theme="light"] .docsNavSelected {
93+
color: black;
94+
text-decoration: none;
9495
}
9596

9697
.docsNavDropdownMenu {
@@ -106,18 +107,15 @@
106107
padding: 10px 10px 10px 10px;
107108
border-radius: 10px;
108109
opacity: 0;
109-
transition: opacity 0.2s ease-in-out;
110110
transform: translateY(30px);
111111
}
112112

113113
.docsNavDropdownMenu.visible {
114114
opacity: 1;
115-
transition: opacity 0.3s ease-in-out;
116115
}
117116

118117
.docsNavDropdownMenu.hiding {
119118
opacity: 0;
120-
transition: opacity 0.15s ease-in-out;
121119
}
122120

123121
@media (max-width: var(--mobile-breakpoint)) {
@@ -201,7 +199,7 @@
201199
}
202200

203201
[data-theme="dark"] .docsNavMenuItem:hover .docsNavItemTitle {
204-
color: black !important;
202+
color: yellow !important;
205203
}
206204

207205
[data-theme="dark"] .docsNavMenuItem:hover {

0 commit comments

Comments
 (0)