hmrc / accessibility

Apache License 2.0
22 stars 5 forks source link

Error summaries repeating content #21

Open adamliptrot-oc opened 4 years ago

adamliptrot-oc commented 4 years ago

Using the published patterns we are seeing error summaries being repeated on page load several times. Noticed on

philsherry commented 4 years ago

Example from HM Passport Office

Page: Do you live in the UK? - Apply for a passport - GOV.UK Test: With VoiceOver on, submit an empty form to force an error state. Result: VoiceOver announces:

“There’s a problem. There’s a problem. Please tell us if you live in the UK.”

Pattern: Error summary GitHub: https://github.com/alphagov/govuk-design-system-backlog/issues/46

NickBromley commented 10 months ago

The duplication may well be caused by the error summary parent container having role="alert", which triggers a screen reader announcement on a change in content, but then the design pattern additionally recommends moving keyboard focus to the summary, which would also result in a screen reader announcement. Shouldn't it be either one or the other techniques, but not both?

ashfaqhussain357 commented 2 months ago

Issue tested with Jaws and VO - issue no longer occurs.

39A64BB3-6ADD-434E-9068-8153477FF679_1_102_o