3x-ui/frontend/src/components/feedback
MHSanaei 60316c831f
fix(frontend): resolve every axe accessibility violation in the component library
Running the stories under axe surfaced real panel defects, not just story cosmetics. FormField never associated its Form.Item label with the wrapped control, so no RHF form field in the panel had a programmatic label; it now generates an id and wires htmlFor. Unnamed controls get accessible names: the prompt and text modal inputs (from the modal title), the client traffic progress bar (used/limit values), the CPU and RAM threshold inputs in the notification groups (event label threaded through the extra renderer), and the JSON editor's contenteditable surface.

ConfigBlock's collapse header carried role=button around focusable action buttons; collapsible=header scopes the toggle to the label. Light theme gains contrast-safe tokens shared by the panel and Storybook: darker description, placeholder, error and success text, a darker primary button blue, and a readable gold tag, all meeting the WCAG AA 4.5:1 ratio. The infinity badge swaps a prohibited bare aria-label for role=img.
2026-07-14 03:38:14 +02:00
..
index.ts refactor(frontend): reorganize source tree & break down oversized modals/tabs (#4698) 2026-05-30 21:51:33 +02:00
PromptModal.stories.tsx feat(frontend): make Storybook a validated, fully covered component workbench 2026-07-14 03:37:21 +02:00
PromptModal.tsx fix(frontend): resolve every axe accessibility violation in the component library 2026-07-14 03:38:14 +02:00
TextModal.stories.tsx feat(frontend): make Storybook a validated, fully covered component workbench 2026-07-14 03:37:21 +02:00
TextModal.tsx fix(frontend): resolve every axe accessibility violation in the component library 2026-07-14 03:38:14 +02:00