Closed untimated closed 1 year ago
The active
styles are set by the class .active
on the SubNavLink
's main Wrapper component, you could wrap it in styled
and overwrite it, i think that would work:
const MyLink = styled(SubNavLink)`
.active {
background-color: pink
}
`
The
active
styles are set by the class.active
on theSubNavLink
's main Wrapper component, you could wrap it instyled
and overwrite it, i think that would work:const MyLink = styled(SubNavLink)` .active { background-color: pink } `
ah right, i find no other way other than tweaking with overwriting class, is this deliberate by strapi design ?. btw, was your solution using styled-components ?
No, no other way because it uses ReactRouterDom links underneath and that's how that component works. Yes I was using styled-components.
Context
Reference : https://design-system-git-main-strapijs.vercel.app/?path=/docs/design-system-components-subnav--base Result : https://i.postimg.cc/rm4rFHds/Screenshot-from-2023-03-17-13-49-08.png
i've been meddling with admin panel customization for the past few days, and wonder why i can't seemed to disabled the active class of SubNavLink component ?
Proposal
No response
Reasons
No response