Topic: Respecting a reduced effects preference in the side menu

byteRunner42 free asked 1 week ago


Our app preference removes decorative effects from buttons. Sidenav links still show ripples after applying similar options.

How can we disable this effect consistently?


Mateusz Lazaru staff answered 1 week ago


Your preference should also reach the element that owns the sidenav effect. Add a class to that menu only while reduced effects are enabled, then scope the ripple-wave visibility rule to that class. This keeps the change limited to the selected preference rather than altering unrelated controls.

Please share the preference state, sidenav JSX, and rendered ripple element so we can confirm the appropriate selector. Removing decorative feedback should still leave a clear focus indicator and a visible active navigation item for keyboard users.

https://mdbootstrap.com/docs/react/navigation/sidenav/



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 9.0.0
  • Device: Desktop
  • Browser: Edge
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No