diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index 935a1e4bca..8746ae1bdc 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -52,7 +52,7 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { const split = to?.split('/'); const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1]; const index = openSections[id] ? 0 : -1; - + const isSectionActive = !!openSections[id]; return ( @@ -73,7 +73,8 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { borderRight={items ? '2px' : 'none'} borderColor='primary' w='100%' - bg='bg' + bg={isSectionActive ? 'secondary' : 'bg'} + color={isSectionActive ? 'body' : 'primary'} _groupHover={{ background: 'primary', color: 'bg', textDecoration: 'none' }} > {to ? (