Repository navigation
Description
First of all, thank you for building and maintaining Syncthing, and for upholding the open-source spirit. Reliable, private, cross-platform file synchronization is hard to come by, and Syncthing has been an indispensable daily driver for keeping files synced across my machines.
As a blind screen reader user who navigates the web GUI primarily with NVDA and JAWS (and occasionally Narrator on Windows), I have noticed several accessibility barriers in the current interface. I wanted to report these specific friction points, as well as share a branch where I've implemented clean, non-visual fixes for them.
What happens currently
- Device and folder invitations occur silently: When a new device connects or a remote device offers to share a folder, prompt banners appear visually at the top of the interface. However, because these panels lack
role="alert"oraria-livemarkup, screen readers are never notified that an invitation has arrived. Unless you manually arrow through the entire DOM to hunt for changes, you cannot tell an invitation is pending. - Background folder state changes are silent: When a folder begins scanning or finishes synchronizing, the state change happens purely visually in the table without a polite live region announcement.
- Modal dialog focus management and semantics: Dialogs such as Settings, Edit Folder, Edit Device, About, and Logs lack
role="dialog",aria-modal="true", and label bindings. When opened, keyboard focus remains behind the modal; Tab navigation is not trapped within the dialog; and upon dismissal, focus frequently resets to the document root rather than returning to the button that opened it. - Modal tabs lack tablist semantics: Navigation tabs inside modals are marked up as plain lists rather than
role="tablist"/role="tab"/role="tabpanel", so screen readers do not convey tab relationships or switch states. - Inaccessible password toggle in folder sharing: In the Sharing tab of the folder editor, the toggle icon to show or hide the encryption password was implemented using a non-semantic
<span>with anng-clickhandler. This makes the toggle completely unreachable by keyboard navigation and unannounced to screen readers. - No audible feedback on clipboard copy: Copying device IDs and shared strings provides visual tooltip confirmation, but emits no programmatic or audible feedback for screen reader users.
- Focus loss during periodic list refreshes: Background polling refreshes can recreate list items in the DOM, causing keyboard focus to jump away when interacting with action controls like Pause and Resume.
Proposed resolution and prototype branch
I wanted to contribute fixes rather than just bringing problems, so I put together a branch on my fork as a "Show, Don't Tell" prototype to make that easier for the maintainers, resolving each of the items above. Because I am visually impaired myself, I could not reliably do visual redesigns (and the fixes didn't need them anyway), so there are no visual changes, layout alterations, or CSS modifications.
Key points about the implementation:
- Introduces a lightweight
LiveAnnouncerAngularJS service managing polite and assertive live regions. - Adds polite live announcements and alert semantics for device/folder invitations, system notices, clipboard copy actions, and folder status transitions (scanning, up to date).
- Enhances modal handling to autofocus the first interactive element, trap Tab navigation inside open dialogs, and restore focus to the triggering element (or parent dropdown) upon dismissal.
- Converts the folder password visibility toggle into an accessible
<button>with dynamicaria-label,aria-pressed, and speech confirmations, while leaving its visual appearance intact. - Preserves DOM elements across polling cycles using
track byto keep button focus stable. - Adds standard landmarks, a skip-to-content link (
.sr-only-focusable), and proper tablist roles.
The branch contains atomic commits following conventional commit standards with DCO sign-offs. It builds cleanly (go run build.go assets, go run build.go build), passes all API unit tests, and has been verified live on Windows using NVDA, JAWS, and Narrator.
Per the contribution guidelines for new contributors, I am sharing this here first to introduce the work and get your thoughts. I would be very glad to open a pull request whenever you are ready to onboard it.
Thank you again for all the work you put into Syncthing!
Activity