bug: swap token controls are not fully keyboard and screen-reader accessible
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- accessibility, frontend
Direzione di ricerca
Inizia in src/components/transactions/Swap/inputs/ e segui il selettore di token condiviso, i controlli per la direzione dello swap e per la cancellazione e i campi di input degli importi. Verifica che le scelte di token popolari possano ricevere il focus ed essere attivate tramite tastiera, che i controlli composti solo da icone abbiano nomi accessibili significativi e che i campi di input e output abbiano nomi distinti. Il lavoro è completato quando questi comportamenti funzionano in tutte le varianti condivise di swap senza una riprogettazione visiva.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
The shared swap UI contains several accessibility problems in the token/amount controls. The highest-impact one is in the token picker: the "Recently used & Popular" token choices are rendered as clickable Box elements with no native button semantics, tabIndex, or keyboard handler, so keyboard-only users cannot focus or activate those choices.
The same shared swap flow also contains icon-only controls without accessible names (including the input/output asset switch button and clear buttons), and the amount inputs use the same generic accessible name (amount input) for both sides of flows where both inputs are editable.
This is in the shared swap components, so it can affect multiple Aave markets and swap variants rather than one isolated screen. It is reproducible on a swap-enabled market such as Ethereum V3.
Relevant WCAG 2.2 criteria include 2.1.1 (Keyboard) and 4.1.2 (Name, Role, Value).
To Reproduce
- Open a swap flow on a swap-enabled market such as Ethereum V3.
- Open the token selector.
- If "Recently used & Popular" choices are present, navigate through the selector using only Tab / Shift+Tab.
- The popular token choices are skipped because they are click-only
Boxelements. - Inspect or use a screen reader on the swap-direction and clear icon buttons; they do not have programmatic accessible names.
- In a flow with editable input and output amounts (for example a limit-order flow), inspect the accessible names of both amount fields; both are exposed as
amount input.
Expected behavior
- Every actionable token choice should be keyboard focusable and activatable using native control semantics.
- Icon-only controls should expose concise accessible names describing their action.
- Input and output amount fields should have distinct, meaningful accessible names.
Screenshots
Not required for the source-level keyboard/semantics issue. The relevant implementation is in the shared swap components under src/components/transactions/Swap/inputs/.
Desktop (please complete the following information):
- OS: Browser/OS independent
- Browser: Modern browsers
- Version: Current
Smartphone (please complete the following information):
- Device: N/A
- OS: N/A
- Browser: N/A
- Version: N/A
Additional context
The most direct remediation is small and does not require visual redesign: use a semantic button primitive for the popular token chips and add meaningful accessible names to the shared swap controls/inputs.
- Lingua principale
- TypeScript
- Stelle
- 536
- Fork
- 496
- Merge medio
- 1g 8h
- PR unite (30g)
- 9
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aave/interface
-
bug new issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug new issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Aave/interface Apertafeature new issue
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
-
bug new issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
bug new issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Tutte le issue di aave/interface
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100