From dbf7a032fa57746e1c3ae4b168b6082d81602688 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Wed, 11 Nov 2026 12:09:05 +0000 Subject: [PATCH] fix(ui): make the SDK dialog keyboard and screen-reader accessible The dialog the SDK injects when the wallet popup is blocked could only be dismissed with a pointer, and assistive technology had no way to tell it was a dialog: - The header close control was a clickable
wrapping an with no alt text, so it was not focusable, not keyboard operable, and had no accessible name. - The dialog had no role, no aria-modal, and no accessible name or description, so screen readers announced it as loose text. - Opening it left focus on the page underneath, Tab walked out of it into content hidden behind the backdrop, and Escape did nothing. DialogInstance now: - renders with role="dialog" and aria-modal="true", labelled by its title and described by its message (ids are prefixed so they cannot collide with a host page's own Preact useId values); - renders the close control as
-
- -
+
-
{title}
-
{message}
+
+ {title} +
+
+ {message} +
{actionItems && actionItems.length > 0 && (
{actionItems.map((action, i) => (