Skip to content

Close checks list when clicking outside of modal #7157

Closed

Description

@Katsute

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)


Activity

  1. a0m0rajab commented on Dec 14, 2023

    @a0m0rajab
    Contributor

    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.

  2. fregante commented on Dec 16, 2023

    @fregante
    Member

    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

  3. Katsute commented on Dec 17, 2023

    @Katsute
    ContributorAuthor
  4. a0m0rajab commented on Dec 17, 2023

    @a0m0rajab
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions