Commit 5166702
committed
🤖 fix(site): a11y polish on the AI providers admin form and list
Three accessibility gaps surfaced by the review pass on the AI
providers admin UI:
* FormField now wires its optional `description` to the input's
`aria-describedby` chain via a stable `${id}-description` id. The
description was previously rendered as an unanchored `<div>`, so
screen readers never announced it when the input received focus.
The chain composes with the existing helper/error ids.
* The providers `<Table>` carries an `aria-label="AI providers"` so
screen readers can name it, per the site/AGENTS.md table rule.
* `ProviderRow` switches from a bare `onClick` + `cursor-pointer`
className to the shared `useClickableTableRow` hook used by other
clickable rows in the app (e.g. TemplateVersions). That gives the
row a button role, a tab stop, Enter/Space activation, a focus
ring, and middle-click handling, so keyboard-only users can
navigate to and activate provider rows.1 parent d13c04e commit 5166702
3 files changed
Lines changed: 17 additions & 11 deletions
File tree
- site/src
- components/FormField
- pages/AISettingsPage/ProvidersPage
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| |||
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
0 commit comments