mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6107] Feature Request: Accessibility (a11y) improvements for Screen Readers #4221
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#4221
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?
Originally created by @alinasrollahzadeh405-sudo on GitHub (Jul 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6107
Is your feature request related to a problem?
Hi @MHSanaei and the 3x-ui team,
First of all, thank you for this incredible panel and all the powerful features you continuously add. It is by far the best and most reliable panel available.
I wanted to suggest some minor Accessibility (a11y) enhancements to make the Web UI even more screen-reader friendly (for visually impaired users relying on tools like TalkBack/NVDA):
aria-hiddenon the main content when the drawer is open) would make navigating the mobile menu seamless.aria-expandedor properrole="listbox"). Adding these helps screen readers announce menu states correctly.<label>tags oraria-labelattributes so their status (checked/unchecked) is clearly announced.aria-labelto buttons that only contain icons (e.g., action buttons like copy, edit, delete, or QR code toggles).These small standard HTML/ARIA tweaks would significantly improve the user experience for accessibility software without altering the visual design at all.
Thanks again for your hard work and dedication!
Describe the solution you'd like
Hi @MHSanaei and the 3x-ui team,
First of all, thank you for this incredible panel and all the powerful features you continuously add. It is by far the best and most reliable panel available.
I wanted to suggest some minor Accessibility (a11y) enhancements to make the Web UI even more screen-reader friendly (for visually impaired users relying on tools like TalkBack/NVDA):
aria-hiddenon the main content when the drawer is open) would make navigating the mobile menu seamless.aria-expandedor properrole="listbox"). Adding these helps screen readers announce menu states correctly.<label>tags oraria-labelattributes so their status (checked/unchecked) is clearly announced.aria-labelto buttons that only contain icons (e.g., action buttons like copy, edit, delete, or QR code toggles).These small standard HTML/ARIA tweaks would significantly improve the user experience for accessibility software without altering the visual design at all.
Thanks again for your hard work and dedication!
Alternatives you've considered
Accessibility (a11y) improvements for Screen Readers
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jul 26, 2026):
Three of the four items are already implemented on current
main; one is partly open, and one needs a specific example before it can be acted on.Already in place, confirmed in source:
eslint-plugin-jsx-a11y(recommended ruleset) runs over every.tsxfile on each lint pass —frontend/eslint.config.js:48-55, with onlyjsx-a11y/no-autofocusdisabled. The two suppressions in the tree are narrow and documented, e.g.frontend/src/pages/nodes/NodeList.tsx:471.aria-label—frontend/src/pages/inbounds/list/RowActions.tsx:72,80,frontend/src/pages/clients/ClientsPage.tsx:760-772,frontend/src/pages/nodes/NodeList.tsx:249-260,frontend/src/pages/hosts/HostList.tsx:81-90,frontend/src/pages/inbounds/qr/QrPanel.tsx:100-109, plus the copy/QR controls inClientInfoModal.tsxandInboundInfoModal.tsx.FormFieldgenerates an id withuseId(), injects it into the wrapped control and setsForm.Item htmlFor, producing a real<label for>—frontend/src/components/form/rhf/FormField.tsx:51-53,66,78-80. Settings rows label their switch viaaria-labelledbypointing at the row title —frontend/src/components/ui/SettingListItem.tsx:21-25. The checked/unchecked announcement itself comes from Ant Design'sSwitch/Checkbox.role="button"plustabIndexand the sharedactivateOnKeyhelper (frontend/src/utils/a11y.ts:3), witharia-expandedon disclosure chevrons —frontend/src/pages/nodes/NodeList.tsx:478-485.Two gaps in the mobile drawer (item 1) are real and confirmed:
frontend/src/layouts/AppSidebar.tsx:309-321renders<Drawer>withclosable={false},styles.headerset todisplay: 'none', and neithertitlenoraria-label, so the dialog is announced without a name. Anaria-labelon theDrawerwould fix it; note that a new i18n key must be added to all 13 files ininternal/web/translation/perCLAUDE.md.{!drawerOpen && (<button className="drawer-handle" …>)}atfrontend/src/layouts/AppSidebar.tsx:369-378. Keeping that button mounted (hidden with CSS) and giving itaria-expandedwould address both focus return and state announcement.On
aria-hidden/inertfor the main content: nothing infrontend/srcsetsinert(grep across the tree). Whether it is needed depends on the focus containment Ant Design's ownDrawerperforms, which I could not verify in this checkout becausenode_modulesis not installed, so I am not asserting either way.Item 2 I could not reproduce. Every dropdown surface I found routes through Ant Design's
Select/Dropdown/AutoComplete, which supply their ownroleandaria-expanded; I found no hand-rolled dropdown or listbox infrontend/src. To act on it, please provide:Related: #5486 requested the same labeling work and is what produced most of the coverage listed above. This report is narrower, so it stays open for the drawer items rather than being closed as a duplicate. @MHSanaei for a decision on those.
This reply was generated automatically; a maintainer may follow up.
@alinasrollahzadeh405-sudo commented on GitHub (Jul 26, 2026):
TalkBack/Chrome. The issue isn't about incorrect announcements. Rather, the main problem is the failure to focus on the left-hand menu (inbounds, clients, hosts, etc.). I thank you all.
Another issue is that when selecting items from dropdown menus (such as protocol, flow, language, etc.), it is not possible to focus on the available options—except by swiping left and right, which is very time-consuming. Thanks again to everyone!
@alinasrollahzadeh405-sudo commented on GitHub (Jul 26, 2026):
Furthermore, after focusing via a swipe gesture, TalkBack fails to recognize options like VLESS, VMess, etc.—even within other dropdown menus—as selectable items, forcing us to rely on a sighted person for assistance! Please address this issue. 3x-ui is the only panel that gives me the flexibility to define rules, configure specific routing for particular scenarios, and so on!
@hoabba3i-dev commented on GitHub (Aug 4, 2026):
Hello,
I've found an issue with the WireGuard protocol.
The Host field does not work correctly. It completely ignores the address we enter and always uses the panel's own address instead.
For example, even if we specify a different host in the WireGuard configuration, the generated configuration still contains the panel address rather than the host we provided.
Could you please check and fix this issue?
Thank you.