debeatzgh1 / debeatzgh1/Html-code-for-portfolio-
Allow modal to close when clicking outside the modal content
Open
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the modal only closes when the "×" button is clicked. Improve UX by allowing users to click the dark background to close the modal.
Suggested Approach:
Add an event listener on the modal background to detect clicks outside `.modal-content` and call `closeModal()`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.