dai11y 14/04/2022

Your daily frequent11y newsletter, brought to you by @ChrisBAshton:

GOV.UK fixes a noisy screenreader issue

GOV.UK had discovered that in recent versions of screen readers, its contact form was too aggressive in announcing how many characters were remaining. This was despite the existing markup of aria-live="polite".

I’ve been keeping an eye on the GitHub issue for this, and a fix was merged recently. There are now three elements responsible for character count announcements:

  1. A static element: “You can use up to 200 characters”. This is visible for non-JavaScript users, and visually hidden otherwise.
  2. An injected, live-updating element showing the characters remaining. This has aria-hidden="true" to hide itself from screen readers.
  3. An injected, debounced element showing characters remaining, visually hidden and aria-live="polite". It only updates after 1 second of inactivity, and only announces once the user has passed the threshold (if a threshold has been set).

This looked like quite a thorny issue to resolve – well done to the Design System team for getting it updated! I hope to see an official blog post on it soon 🤞


Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...