From 34a117fccca66236eb95adc1012e4beded551ca4 Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 12 Dec 2024 12:16:51 +0530 Subject: [PATCH 1/2] fix sidebar highlights --- docs/site/src/components/API/api-ref/refnav.js | 3 +-- docs/site/src/css/custom.css | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/site/src/components/API/api-ref/refnav.js b/docs/site/src/components/API/api-ref/refnav.js index e88b41d0233..c4637fef76e 100644 --- a/docs/site/src/components/API/api-ref/refnav.js +++ b/docs/site/src/components/API/api-ref/refnav.js @@ -41,10 +41,9 @@ const RefNav = (props) => { .map((method) => { return ( setPage(method.name)} > {method.name} diff --git a/docs/site/src/css/custom.css b/docs/site/src/css/custom.css index 59c5136435d..1ddaebaae8e 100644 --- a/docs/site/src/css/custom.css +++ b/docs/site/src/css/custom.css @@ -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) { @@ -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, From 001bcb273e2bcb7bf335f8a595a1aa8f31a082c2 Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Fri, 13 Dec 2024 17:50:16 +0530 Subject: [PATCH 2/2] Lint fix --- docs/site/src/components/API/api-ref/refnav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/src/components/API/api-ref/refnav.js b/docs/site/src/components/API/api-ref/refnav.js index c4637fef76e..f594067ece1 100644 --- a/docs/site/src/components/API/api-ref/refnav.js +++ b/docs/site/src/components/API/api-ref/refnav.js @@ -41,7 +41,7 @@ const RefNav = (props) => { .map((method) => { return ( setPage(method.name)}