mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6832] [Feature]: Improve screen reader (TalkBack) accessibility for dropdown menus (Protocol, Transport, etc.) #4548
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#4548
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 (Oct 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6832
Is your feature request related to a problem?
I'm always frustrated when using screen readers (like Android TalkBack) to interact with selection menus in the panel.
When opening dropdown menus or modals (such as switching Protocol, changing Network/Transport settings, or selecting other menu options), the screen reader fails to focus on the newly opened menu items. As a result, visually impaired users using TalkBack cannot navigate, read, or select these options.
Describe the solution you'd like
Implement standard accessibility focus management for dropdowns and popups (e.g., using ARIA attributes like
aria-expanded,aria-controls, or properly directing focus to the active dropdown layer upon opening). This will allow TalkBack to immediately lock onto and read the selectable items.Alternatives you've considered
No response
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
@MHSanaei commented on GitHub (Oct 16, 2026):
@claude analyze
@github-actions[bot] commented on GitHub (Oct 16, 2026):
This is a real accessibility gap, but it is a feature request rather than a defect in 3x-ui's own code. The Protocol, Transport and other pickers are stock Ant Design
Selectcomponents. The panel adds no custom dropdown markup on top of them, so any fix has to change how the panel usesSelector be made upstream in Ant Design. Addingaria-expanded/aria-controls, as the issue proposes, would not be enough by itself.What the source shows:
Select. Infrontend/src/pages/inbounds/form/InboundFormModal.tsx:665-666: The outbound form does the same thing atfrontend/src/pages/xray/outbounds/OutboundFormModal.tsx:404.ConfigProviderwrappers changesSelectbehaviour. They pass onlytheme(for examplefrontend/src/pages/inbounds/InboundsPage.tsx:713). The onlySelectin the tree with an explicitvirtualprop is infrontend/src/components/geodata/GeoBrowserModal.tsx:352. Every dropdown therefore uses Ant Design's defaults: antd6.6.5, which uses@rc-component/select1.10.1and@rc-component/virtual-list1.5.2(frontend/package-lock.json:6434,:3691,:3917)..ant-select-item-option, not through an ARIA role (frontend/src/test/test-utils.tsx:41,59). That is consistent with the visible option rows not being the elements that carryrole="option".jsx-a11yrules (frontend/.oxlintrc.json:9). Those rules check the JSX the panel writes, not the DOM thatSelectgenerates at runtime, so they cannot catch this.Why TalkBack behaves the way you describe (an inference:
node_modulesis not installed in this checkout, and I could not read the@rc-component/selectsource): as far as I know, rc-select keeps focus on its combobox input. It exposes the options to assistive technology through a separate, visually hiddenrole="listbox"that holds only the active option and its neighbours. The rows you see and swipe to are rendered in a virtualised list without option semantics. That matches both symptoms in your report and in your comment on #6107: focus does not move into the opened list, and swiping reaches entries likeVLESS/VMessthat are not announced as selectable.Possible directions, for the maintainer to decide:
ant-design/ant-design/react-component/selectwith the TalkBack + Chrome reproduction, so everySelectbenefits.<select>instead of the Ant DesignSelectfor short, fixed option lists (Protocol, Transport, Flow, language). Android's native picker works with TalkBack. This changes how those controls look, so it is a design decision. Settingvirtual={false}would only stop the list being virtualised. I have not confirmed it adds option roles, so it may not be enough on its own.Related: #6107 is the same request in broader form, and your reply there already describes these dropdowns. #5486 is the earlier labelling work. This issue is the more focused report of the dropdown part, so I left it open next to #6107 instead of closing it as a duplicate.
Not determined: whether
virtual={false}alone makes the options selectable in TalkBack. That needs a test on a real Android device with TalkBack and Chrome.Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.
@alinasrollahzadeh405-sudo commented on GitHub (Oct 24, 2026):
سلام خدمت شما آقای سنایی عزیز.
اگر براتون مقدوره، هرچه زودتر release جدید رو منتشر کنید و مشکل accessability رو حل کنید!
من نابینا هستم و حتی برای ساخت ایمباند هم مجبورم از یه فرد بینا کمک بگیرم! یعنی زمانی که یه فرد بینا کنارم نباشه، دستم عملا توی هر جایی که dropdown داره، بستست!
ممنون میشم سریعتر پیگیری کنید.
ممنون از تلاشهای شما!