Menu

Our Electron UI has 37 buttons, 8 aria attributes and one Escape handler, and the modal is not a dialog
📰

Our Electron UI has 37 buttons, 8 aria attributes and one Escape handler, and the modal is not a dialog

DEV Community: react·Daniel Pertu·15 days ago
#wyvw7Pr7
#devtoreact#devto#dev#fafafa#aria
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages and tells you when a new listing appears. Its window is a browser pointed at an Express server in the same process , so the UI is a React app in every respect except that it has no URL anybody can visit.

That last part is why I had never audited it. I have run accessibility passes over the marketing site and over a React Native app, because both felt like public surfaces. The desktop renderer felt like a tool, and a tool you can see is a tool you assume is fine.

It is 3,107 lines across 11 components. Here is what counting found.

The good half, and I was surprised by it

All 37 buttons have a visible text label. I wrote a script to pull every <button> block out of the renderer and check whether anything inside it was a word. Thirty-seven buttons, thirty-seven labels, and aria-label appears on exactly zero of them because none of them needs one.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.