Skip to content

fix: announce copy and save confirmations to screen readers - #3976

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/announce-copy-and-save
Oct 22, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/announce-copy-and-save

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Description

  • Copy buttons: copying the link password, an app token, the WebDAV path/URL or the CalDAV URL/username only swapped the icon to a check. Each place now has its own hidden announcer next to the button that says "Copied to clipboard!", so it also works inside modals.
  • Changes saved: saving a user or group in admin settings showed "Changes saved" without announcing it. It's announced now; the visible text is hidden from screen readers since the announcer already carries it, so it isn't read twice.
  • OcHiddenAnnouncer: it now exposes an announce(message) method for actions, called through a template ref like focus() / hide() on other components. Every call is announced, also the same text twice. The announcement prop still works for states and now clears and re-sets on every change, so a wrong public link password is announced again on the second try too.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: announcer re-announces new and repeated text; each copy place and the save dialog announce on success and not otherwise
  • test case 2: browser (desktop, link modal also on Pixel 7): main announces nothing, the branch announces every copy (twice in a row too) and "Changes saved" once; the announcers sit inside the modals; route change, selection count and wrong link password announcements unchanged; pixel diff of all touched places shows no visual change

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 L(H)GTM

@AlexAndBear
AlexAndBear merged commit 41b0c6e into main Oct 22, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy and save confirmations aren't announced to screen readers

2 participants