Skip to content

Commit ae8a2ef

Browse files
committed
Support dropdown
1 parent 4e48aee commit ae8a2ef

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ module.exports = {
461461
},
462462
{
463463
label: 'Contribute to Docs',
464-
to: '/docs/contributing',
464+
to: 'docs/contributing',
465465
icon: 'edit_note',
466466
},
467467
],

src/css/sumo.scss

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,12 @@ html[data-theme='light'] {
253253
}
254254

255255

256-
257-
// Support dropdown button
256+
/* General styling for the Support dropdown button */
258257
.support-menu-trigger {
259258
display: flex;
260259
align-items: center;
261260
cursor: pointer;
262-
color: white; /* Text color should be white */
261+
color: white !important; /* Text color should be white */
263262
border: 1px solid rgba(255, 255, 255, 0.2); /* Border matching the style */
264263
border-radius: 3px;
265264
padding: 5px 15px;
@@ -283,12 +282,26 @@ html[data-theme='light'] {
283282
margin-right: 8px; /* Space between text and the arrow */
284283
}
285284

286-
/* Ensure the arrow is styled similarly */
285+
/* Styling the arrow (SVG) */
287286
.support-menu-trigger svg {
288287
width: 9px;
289288
height: 6px;
290289
fill: none;
291-
stroke: white; /* Make the arrow white */
290+
stroke: white; /* Make the arrow white by default */
291+
}
292+
293+
/* Media query for light mode */
294+
@media (prefers-color-scheme: light) {
295+
.support-menu-trigger svg {
296+
stroke: white; /* Change the arrow color to black for light mode */
297+
}
298+
}
299+
300+
/* Media query for dark mode */
301+
@media (prefers-color-scheme: dark) {
302+
.support-menu-trigger svg {
303+
stroke: white !important; /* Ensure the arrow is white for dark mode */
304+
}
292305
}
293306

294307
/* Style the dropdown wrapper */

0 commit comments

Comments
 (0)