Closed
Description
Describe the bug
On the mobile view of the JSON Schema website, when the dark/light mode toggle is opened, it remains open even after the user clicks outside of the toggle or interacts with other elements on the page. This behavior clutters the interface and negatively impacts usability.
Steps To Reproduce
- Open the website in mobile view or on a mobile device.
- Click on the dark/light mode toggle to open it.
- Click anywhere outside the toggle, such as on the main content or a navigation element.
- Observe that the toggle remains open and does not close automatically.
Expected Behavior
The dark/light mode toggle should close automatically when:
- The user clicks anywhere outside the toggle.
- The user interacts with other page elements.
Screenshots
Screencast.from.2025-01-10.16-56-02.webm
Device Information [optional]
- OS:
- Browser:
- version:
Are you working on this issue?
Yes
Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)
No