mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5652
Author: @nima1024m
Created: 6/29/2026
Status: ✅ Merged
Merged: 6/29/2026
Merged by: @MHSanaei
Base:
main← Head:feat/accessibility-screen-reader📝 Commits (9)
fdac307feat(a11y): label list, toolbar & dashboard actions for screen readers2a4544ffeat(a11y): label modal, QR and copy/download controls for screen readersff96941feat(a11y): label form fields and shared form components for screen readers01a016fchore(a11y): add eslint-plugin-jsx-a11y harness and fix flagged interactions7198a66feat(a11y): cover remaining deferred spots (settings tabs, sockopt, API docs)615bb32feat(a11y): label shared xray form components and remark field74c9f55feat(a11y): label client info modal and WireGuard config blocke4e862bfix(frontend): let npm install jsx-a11y under ESLint 107aeca55fix(a11y): size mobile row triggers and move node expand role to chevron📊 Changes
82 files changed (+2080 additions, -266 deletions)
View changed files
📝
frontend/eslint.config.js(+9 -0)📝
frontend/package-lock.json(+1376 -8)📝
frontend/package.json(+4 -0)📝
frontend/src/components/clients/ConfigBlock.tsx(+4 -2)📝
frontend/src/components/form/DateTimePicker.tsx(+3 -1)📝
frontend/src/components/form/HeaderMapEditor.tsx(+3 -1)📝
frontend/src/components/form/JsonEditor.tsx(+3 -1)📝
frontend/src/components/form/RemarkTemplateField.tsx(+1 -1)📝
frontend/src/components/form/RemarkVarPicker.tsx(+4 -0)📝
frontend/src/components/ui/InputAddon.tsx(+7 -1)📝
frontend/src/components/ui/SettingListItem.tsx(+8 -3)📝
frontend/src/components/ui/notifications/NotificationHeader.tsx(+3 -1)📝
frontend/src/components/viz/Sparkline.tsx(+11 -1)📝
frontend/src/layouts/AppSidebar.tsx(+1 -1)📝
frontend/src/lib/xray/forms/SniffingFields.tsx(+6 -1)📝
frontend/src/lib/xray/forms/transport/CustomSockoptList.tsx(+6 -0)📝
frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx(+71 -7)📝
frontend/src/pages/api-docs/ApiDocsPage.tsx(+3 -1)📝
frontend/src/pages/clients/ClientBulkAddModal.tsx(+1 -0)📝
frontend/src/pages/clients/ClientFormModal.tsx(+12 -10)...and 62 more files
📄 Description
Implements panel-wide screen-reader (Android TalkBack) and keyboard accessibility for upstream issue MHSanaei/3x-ui#5486.
What changed
Icon-only buttons across the panel previously announced only their untranslated icon name (e.g. "edit", "ellipsis") or nothing, and several clickable elements (mobile card actions, dashboard cards, drag handles, QR codes, list remove-icons) were not keyboard-operable. This adds proper accessible names and keyboard support across every management surface, without changing any visual or mouse behavior.
Built from a panel-wide audit, split into reviewable commits:
SettingListItemnow labels the ~90 settings-tab inputs viaaria-labelledby;InputAddonremove controls are keyboard-operable; form add/remove/regenerate buttons and bare inputs labeled; decorative iconsaria-hidden; charts exposed as labeled images.FinalMaskForm,CustomSockoptList,SniffingFields, and the WireGuardConfigBlock(used by the host/inbound/client forms).eslint-plugin-jsx-a11y(flat-config recommended ruleset) so accessibility regressions failnpm run lint. This is a lint-time tool only: it is not bundled and does not affect the built panel — the shipped accessibility is thearia-*/role/tabIndexattributes added to the JSX.A small shared
activateOnKeyhelper (src/utils/a11y.ts) provides Enter/Space activation for non-button clickable elements.Internationalization
12 new i18n keys added to all 13 locale files with real translations (not English fallbacks):
sort,regenerate,jsonEditor,downloadImage,menu.openMenu,pages.xray.outbound.moveToTop,pages.xray.balancer.{costMatch,costValue,costRegexp},pages.settings.notifyTime.{interval,unit},pages.inbounds.sniffingDestOverride. Everything else reuses existing keys. Three previously-hardcoded English outbound menu labels are now translated.Dependency note: jsx-a11y on ESLint 10
eslint-plugin-jsx-a11y@6.10.2(its latest release) declares a peer range that stops at ESLint 9, while this panel is on ESLint 10. The plugin itself runs fine on ESLint 10 through flat config (flatConfigs.recommended) — the peer range is simply stale — but the version mismatch makes a cleannpm ciabort withERESOLVE. This is resolved with a single npmoverridesentry so the plugin accepts the project's ESLint version:This is surgical: it only relaxes jsx-a11y's
eslintpeer and leaves normal peer resolution intact, so recharts'react-ispeer still auto-installs. Nolegacy-peer-deps, no other dependency changes.Verification
npm run typecheck,npm run lint(jsx-a11y enforced — 0 errors),npm run build,npm run test(616/616),make gen(no diff).t()key resolves in en-US; all 12 new keys present as strings in all 13 locales.Notes
aria-*/role/tabIndex/onKeyDown) and do not alter mouse/visual behavior.jsx-a11y/no-autofocusis disabled deliberately — autofocus on the login field and modal primary inputs is intentional focus management that helps screen-reader and keyboard users land on the right control.role/tabIndex/aria-label/onClick/onKeyDownicon pattern (~34 sites) into a smallClickableIconcomponent.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.