innovaccer / design-system

Masala Design System (MDS) is an open-source design system built at Innovaccer. Figma file : https://www.figma.com/community/file/974368355920553546/masala-design-system-web-guidelines
https://mds.innovaccer.com
MIT License
84 stars 79 forks source link

fix: set active state for left menu item #2369

Open youngheart12 opened 1 week ago

youngheart12 commented 1 week ago

What does this implement/fix? Explain your changes.

This commit addresses the issue with the active state not being correctly set for the left menu items in the navigation. By adding window.location.pathname in a useEffect hook, the component can now accurately determine the current path and set the appropriate menu item as active. This change ensures that the UI reflects the correct navigation state based on the URL, improving user experience and navigation consistency. ...

Does this close any currently open issues?

Yes, this change resolves issue #2367 related to the active menu item display in the sidebar navigation. ...

Any other comments?

N/A ...

Dependent PRs/Commits

...

Describe breaking changes, if any.

There are no breaking changes associated with this commit. All existing functionality remains intact. ...

Checklist

Check all those that are applicable and complete.