Fix VoiceOver for labels in the Delete modal when deleting a file
The following discussion from !127859 (merged) should be addressed:
-
@danmh started a discussion: (+3 comments) issue: On second modal focus is automatically given to the
Delete file
button. This increases the chance of accidental presses, and doesn't match the a11y guidelines for modal.Kapture_2023-08-01_at_13.33.39
suggestion: Focus should reset to the title for the second modal.
I've just noticed the labels for the inputs aren't announcing in VoiceOver. Sorry I missed that in my initial review. Compare this modal, and the example form in storybook:
Edited by Paulina Sedlak-Jakubowska