forked from molecule-ai/molecule-core
fix(canvas): add role=alert to deploy error in EmptyState
WCAG 1.3.1 / 4.1.3: the error div that appears after a failed workspace deploy or blank-workspace create had no ARIA live region, so screen readers never announced it. Adding role="alert" makes the message an implicit aria-live="assertive" region so assistive technology surfaces the error immediately without requiring the user to navigate to it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a8fcff947d
commit
dc5f74231d
@ -153,7 +153,7 @@ export function EmptyState() {
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<div className="mt-3 px-3 py-2 bg-red-950/40 border border-red-800/50 rounded-lg text-xs text-red-400">
|
||||
<div role="alert" className="mt-3 px-3 py-2 bg-red-950/40 border border-red-800/50 rounded-lg text-xs text-red-400">
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user