From ca4f6bb9b23c6ba8a3a8a03db954c12217d7f3e9 Mon Sep 17 00:00:00 2001 From: lightnoor890 Date: Mon, 29 Jun 2026 15:14:40 +0100 Subject: [PATCH] fix: accessibility improvements for Stellar flows --- docs/A11Y.md | 17 +++++ src/App.tsx | 5 +- src/components/ChainSwitcher.tsx | 2 +- src/components/CkbSend.tsx | 6 +- src/components/SolanaReceive.tsx | 3 +- src/components/SolanaSend.tsx | 6 +- src/components/StellarReceive.tsx | 106 +++++++++++++++--------------- src/components/StellarSend.tsx | 6 +- src/index.css | 6 +- 9 files changed, 93 insertions(+), 64 deletions(-) create mode 100644 docs/A11Y.md diff --git a/docs/A11Y.md b/docs/A11Y.md new file mode 100644 index 0000000..a0c9ee0 --- /dev/null +++ b/docs/A11Y.md @@ -0,0 +1,17 @@ +# Accessibility Audit Findings + +This document outlines the results of the WCAG 2.1 AA accessibility audit for the Stellar flows. + +| Severity | WCAG Criterion | Element | Status | +| :--- | :--- | :--- | :--- | +| Critical | 2.4.7 Focus Visible | All interactive elements (`input`, `select`, `button`) | Fixed | +| Serious | 1.4.3 Contrast (Minimum) | `input::placeholder` | Fixed | +| Serious | 1.3.1 Info and Relationships | `input` in `StellarSend.tsx` and `StellarReceive.tsx` | Fixed | +| Serious | 1.4.3 Contrast (Minimum) | Text using `text-outline` color | Fixed (Placeholder increased) | +| Serious | 2.4.1 Bypass Blocks | Global | Fixed (Skip-link added) | + +## VoiceOver Run-through Notes +(To be completed after fixes) + +## Axe Report +(To be completed after fixes) diff --git a/src/App.tsx b/src/App.tsx index 41f52e0..31ea0dd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,9 +7,12 @@ import Receive from '@/pages/Receive'; export function App() { return (
+ + Skip to content +
-
+
} /> } /> diff --git a/src/components/ChainSwitcher.tsx b/src/components/ChainSwitcher.tsx index cae86af..75b9d0b 100644 --- a/src/components/ChainSwitcher.tsx +++ b/src/components/ChainSwitcher.tsx @@ -16,7 +16,7 @@ export function ChainSwitcher() { setRecipient(e.target.value)} @@ -153,11 +154,12 @@ export function CkbSend() {
-