Make the navbar automatically close once we toggle the mode(light/dark) for a better user experience.
Author: 5AIPAVANCreated Oct 11, 2024Updated Nov 3, 2025
Labelsbug
Describe the bug
For a screen size <=770px, we can improve the user experience by making the navbar close automatically when the user toggled the mode switch button(light/dark)
Steps to reproduce
Add a function in ../ToggleSwitch/ToggleSwitch component -> that makes the navbar close once we toggle the switch mode button.
Expected behavior
After toggle the navbar must close automatically once the mode is changed
Is this responsiveness Issue
NO
Screenshots
Desktop
- OS: [e.g. iOS]
- Browser: [e.g. chrome, safari]
- Version: [e.g. 22]
Smartphones
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
No response
Source: saadpasta/developerFolio