refined-github / refined-github

:octocat: Browser extension that simplifies the GitHub interface and adds useful features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Close checks list when clicking outside of modal

Katsute opened this issue · comments

Description

Clicking anywhere outside the modal should just close it, every other modal that GH uses does close when you click outside the modal.

  1. Click on the check:

    image

  2. Click anywhere outside the modal:

    (modal does not close)

    image

Example URLs

(any page that shows a commit check)


This could be done by adding a click event listener to: div.Dialog__Backdrop-sc-uaxjsn-0.gmJJZ and check if the target is that specific element then click on the X button.

I could not get the dialog in the first link provided for examples though.

That's too bad, GitHub has always dealt with modals pretty well, especially because they never had a darkened background so people don't even know it's a modal. We used to have a feature for that #735

For what it's worth, that modal can be closed via ESC

@Katsute thanks for taking this, I think you could open a PR. If @fregante does not want it, he will just close it. Otherwise, your PR will get a code review 😄 . This might save you and him some time due to the time zone differences.

Note: I am just an external programmer for the project.