I'm trying to wrap a Material-UI <ListItem button>
into a react-router <NavLink>
. Basically it's working fine, but I noticed that the <NavLink>
Component changes the ripple colors on the <ListItem button>
. If I wrap It the other way round (NavLink in ListItem) I won't be able to style the <ListItem>
with classes.linkActive
so that's not an option.
here is a minimal code-sample showing the problem: https://codesandbox.io/s/xrxl90jv04
I've been looking through the components a bit but I'm kinda new to react, so any Ideas on how to prevent NavLink to change the colors or any way to tell the ListItem to use the default/theme palette again?