Skip to content

ModalRemoveDoc focus and keyboard accessibility #1530

@Ovgodd

Description

@Ovgodd

Bug Report

Problematic behavior
The "Remove Document" modal could not be opened via keyboard, and had no focus trap:

  • Users pressing Enter had no effect
  • Focus would escape the modal content

Expected behavior/code

  • Pressing Enter on the appropriate trigger opens the modal
  • Focus is trapped inside the modal
  • ESC or cancel properly closes it

Steps to Reproduce

  1. Navigate to the remove button using Tab
  2. Press Enter — nothing happens
  3. If opened manually, try tabbing — focus escapes modal

Possible Solution

  • Add a focus trap inside the modal
  • Add keyboard handler with Enter/Space support

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions