Skip to content

Community selection modal can't be closed via "close" button #3383

@monotasker

Description

@monotasker

Package version (if known): 13.x

Describe the bug

When the community header selection modal is open, the "close" button does not close it. Neither clicking the button nor activating via keyboard works.

Steps to Reproduce

  1. Go to the deposit form
  2. Click on "Select a Community" to open the modal
  3. Click on "Close" at bottom right
  4. Modal does not close
  5. Use tab to move focus to "Close" button
  6. Press "space" or "enter"
  7. Modal does not close

Expected behavior

The should work when clicked, and should also be activated on both "space" and "enter" keypresses (https://www.w3.org/WAI/ARIA/apg/patterns/button/)

Screenshots (if applicable)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions