Skip to content

fix(a11y): announce form submission success to screen readers#3238

Merged
pringelmann merged 1 commit into
mainfrom
fix/2858-a11y-issues
May 22, 2026
Merged

fix(a11y): announce form submission success to screen readers#3238
pringelmann merged 1 commit into
mainfrom
fix/2858-a11y-issues

Conversation

@pringelmann
Copy link
Copy Markdown
Collaborator

@pringelmann pringelmann commented Mar 23, 2026

Summary

After submitting a form, screen readers had no way to know the submission succeeded — the success view rendered silently. This adds a visually-hidden aria-live region that announces the success message.

The live region is populated via a watcher with a short delay (100ms) because the submission triggers a large DOM change (form replaced by success view) that causes screen readers to miss a synchronous aria-live="polite" update.

Not addressed here

The remaining issues from #2858 (checkbox keyboard toggle, date picker keyboard nav, dropdown announcements) are tracked separately:

  • Checkbox double-toggle on spacebar: fix to be submitted upstream to nextcloud-vue
  • Date picker keyboard issues: will be resolved by the Vue 3 / @nextcloud/vue v9 migration (refactor: Migrate components for Vue 3 compatibility #2972), which replaces the underlying vue2-datepicker with @vuepic/vue-datepicker
  • Dropdown (NcSelect) screen reader announcements: upstream issue in nextcloud-vue

An alternative approach worth considering for the success announcement is using showSuccess() from @nextcloud/dialogs, which handles its own screen reader announcements. The tradeoff is it also shows a visible toast to sighted users.

Checklist

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann self-assigned this Mar 23, 2026
@pringelmann pringelmann added the 3. to review Waiting for reviews label Mar 23, 2026
@pringelmann pringelmann added this to the 5.3 milestone Mar 23, 2026
@pringelmann pringelmann added a11y related to accessibility feature: 📝 submitting responses bug Something isn't working labels Mar 23, 2026
@pringelmann pringelmann marked this pull request as ready for review March 23, 2026 11:50
@pringelmann pringelmann requested review from Chartman123, artonge and susnux and removed request for Chartman123 March 23, 2026 11:50
Comment thread src/views/Submit.vue
@Chartman123 Chartman123 linked an issue May 22, 2026 that may be closed by this pull request
@pringelmann pringelmann requested a review from susnux May 22, 2026 10:03
@pringelmann pringelmann merged commit ff6d076 into main May 22, 2026
48 checks passed
@pringelmann pringelmann deleted the fix/2858-a11y-issues branch May 22, 2026 10:30
@github-project-automation github-project-automation Bot moved this from Todo to Done in A11Y initiative 2026 May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews a11y related to accessibility bug Something isn't working feature: 📝 submitting responses

Projects

Development

Successfully merging this pull request may close these issues.

a11y: submission not announced to screen reader

3 participants