Topic: Disabling click ripples on sidenav navigation links
frontendLab
free
asked 3 weeks ago
We need plain navigation links for an internal dashboard. Adding ripple related flags does not remove the effect from sidenav items.
Is there a component level setting?
Mateusz Lazaru
staff
answered 3 weeks ago
Please do not rely on Standard data attributes to configure React sidenav links. A scoped stylesheet rule hiding .ripple-wave inside the sidenav can remove the visible ripple. Apply a custom class to your menu and scope the selector to that class.
This hides the visual effect rather than removing its event handling. Keep keyboard focus styling visible. Please share the sidenav-link JSX and imports if you need the effect disabled at the component level instead of a visual workaround.
.dashboard-sidenav .ripple-wave {
display: none !important;
}
https://mdbootstrap.com/docs/react/navigation/sidenav/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: MDB5 9.0.0
- Device: Desktop
- Browser: Firefox
- OS: Windows 11
- Provided sample code: No
- Provided link: No