Skip to content

Commit

Permalink
fix sidebar highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekjain23 committed Dec 12, 2024
1 parent b45cbce commit 34a117f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/site/src/components/API/api-ref/refnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ const RefNav = (props) => {
.map((method) => {
return (
<Link
className={`menu__link font-medium block hover:no-underline text-base ${page === method.name && 'menu__link--active'}`}
className={`menu__link font-medium block hover:no-underline text-base ${page === method.name && 'menu__link--active'}`}
key={`link-${method.name.toLowerCase()}`}
href={`#${method.name.toLowerCase()}`}
data-theme="dark"
onClick={() => setPage(method.name)}
>
{method.name}
Expand Down
6 changes: 3 additions & 3 deletions docs/site/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@

[data-theme="dark"] .menu__link--active {
font-weight: bold;
color: white;
color: #3b82f6;
}

@media (min-width: 997px) {
[data-theme="light"] .menu__link:hover,
[data-theme="light"] .menu__link--active{
font-weight: bold;
color: var(--ifm-menu-color)
color: #3b82f6
}
}
@media (max-width: 996px) {
Expand All @@ -148,7 +148,7 @@
[data-theme="light"] .menu__list-item-collapsible--active,
[data-theme="light"] .menu__link--active {
font-weight: bold;
color: white;
color: #3b82f6;
}

[data-theme="light"] .menu__list-item-collapsible:hover,
Expand Down

0 comments on commit 34a117f

Please sign in to comment.