2.23 Warning message is not accessible for assistive technology users (H)

FIGURE 2.55: Warning message highlighted on the New Enrolment modal
2.23.1 WCAG 2.1.1 (A), 2.1.2 (A), 2.4.3 (A), 4.1.3 (AA) - Desktop
A modal containing the warning message stating “A patient with this NHS number is already registered” appears on the screen when users try to assign an existing member to a programme.
This message is not announced by screen readers. They are not informed of the outcome of their action and that there is an error—this could lead to them believing that the form is not functional.
Furthermore, focus does not move inside the modal. Users cannot dismiss the modal using their keyboard, resulting in the modal staying on screen until it is closed using a mouse. This keyboard trap makes the page inoperable for keyboard users.
2.23.2 Recommendation
Focus needs to stay within a modal dialog box when opened. Programmatically ensure that users cannot navigate outside the dialog box until they complete the required action (choosing an option or manually closing the box).
All interactive elements need to be keyboard accessible.
2.23.3 Spotcheck: December 2022
This issue is unresolved. The error message is presented under the “Patient NHS number” form field now, however, is still not announced to screen reader users. Errors should be indicated by setting aria-live="assertive"
so that dynamic elements on the page are announced by screen readers.