Method to dismiss modal without submitting data is not accessible

Link to Method to dismiss modal without submitting data is not accessible copied to clipboard

modal-forces-submission

Rule

Functionality MUST be available using the keyboard, unless the functionality cannot be accomplished in any known way using a keyboard.

Background

Some people cannot use a mouse due to vision or motor disabilities. Content that can be operated with a mouse must also be made operable with a keyboard. When content is operable through a keyboard, it becomes operable by a variety of assistive technologies such as speech input software, sip-and-puff software, on-screen keyboards, scanning software, and alternate keyboards.

How to Fix

Fix this issue by providing a method to dismiss/close the modal dialog without submitting data, such as a close button or similar that:

  1. Is keyboard and touch operable and
  2. Works with assistive technology running and
  3. Is visually apparent