[GH-ISSUE #7023] [accessability]: بهبود فوری دسترسپذیری پنل #4622

Open
opened 2026-10-31 20:40:57 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @alinasrollahzadeh405-sudo on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7023

سلام. لطفا هرچه زودتر به مشکل دراپدانها با صفحه‌خوان رسیدگی کنید! کار با پنل واقعا سخته! ساخت inbound هم نیاز به کمک یه فرد بینا داره!

تمام دراپدانها، مثلا انتخاب ترنسپورت باید برچسبگذاری بشه و به عنوان selectable item به صفحه‌خوان معرفی بشه. و یه سری بهبودهای دیگه. مثلا روی chrome 156 android دراپدانها حتی به صفحه‌خوان معرفی هم نمیشه! ممنون از شما!

Describe the solution you'd like

باید بهبودهایی (هرچه سریعتر) در خصوص accessability پنل صورت بگیره. بخش انتخاب پرتکل، ترنسپورت، ایمباند و غیره (هر جایی که dropdown menu داره)

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @alinasrollahzadeh405-sudo on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7023 ### Is your feature request related to a problem? سلام. لطفا هرچه زودتر به مشکل دراپدانها با صفحه‌خوان رسیدگی کنید! کار با پنل واقعا سخته! ساخت inbound هم نیاز به کمک یه فرد بینا داره! تمام دراپدانها، مثلا انتخاب ترنسپورت باید برچسبگذاری بشه و به عنوان `selectable item` به صفحه‌خوان معرفی بشه. و یه سری بهبودهای دیگه. مثلا روی chrome 156 android دراپدانها حتی به صفحه‌خوان معرفی هم نمیشه! ممنون از شما! ### Describe the solution you'd like باید بهبودهایی (هرچه سریعتر) در خصوص accessability پنل صورت بگیره. بخش انتخاب پرتکل، ترنسپورت، ایمباند و غیره (هر جایی که dropdown menu داره) ### 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? - [x] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@HamedSanaei commented on GitHub (Oct 29, 2026):

Implementation submitted in PR #7025: https://github.com/MHSanaei/3x-ui/pull/7025

Findings

This involves more than missing labels. Inspection of the installed Ant Design 6.6.7/rc-select implementation showed that virtualized Select renders option semantics on a hidden proxy containing the active item and its neighbors; the visible rows do not carry the same option semantics. Default popup placement also puts the list outside the aria-modal dialog.

I evaluated virtual={false} against the rendered components and Chromium accessibility tree. It exposes the real list/option elements, but the closed single-select combobox still had an empty accessible value. A failing regression test reproduced this even after virtualization was disabled. Therefore, disabling virtualization alone was insufficient for the simple pickers.

Implemented changes

  • Added a small themed native <select> component for short, single-value lists, including Protocol, Transport, encryption/auth choices and related protocol/security/transport settings. The browser supplies the control/option semantics, selected value and native picker interaction.
  • Preserved React Hook Form integration, refs, blur handling, existing labels/descriptions, typed string/number/empty values, disabled choices and fields, dynamic options and unlisted saved values. Existing onChange/onAfterChange side effects remain in place.
  • Kept searchable, clearable, autocomplete, tags and multi-select controls on Ant Design. Within the inbound modal, their options are rendered without virtualization and their popups stay inside the modal body. Application-wide Ant Design defaults are unchanged.
  • Named the Security radio group and connected translated RHF validation help to its input through accessible descriptions and invalid state. Regression coverage includes revealing/focusing an invalid field on another tab and preventing submission.
  • Added boundary-only Tab/Shift+Tab wrapping after a real Chromium keyboard reproduction showed focus could leave the document after the last modal button. Dropdown focus and native picker focus remain under the control's normal interaction model.
  • Updated the fixed-choice controls in the shared FinalMask, CustomSockopt and XDrive editors because these are also used by the inbound workflow. Their outbound consumers are covered by the full regression suite.

Verification and preserved contracts

The relevant defects were recorded as failing tests before their fixes. make verify passed, including frontend typecheck/lint/format checks, 2,030 tests across 219 files, production and Storybook builds, Go tests/lint/build and generated-contract checks.

A separate Playwright check passed four workflows: desktop/mobile viewport × create/edit. It uses real Chromium keyboard input, checks None/TLS/REALITY selection, desktop native-picker cancellation, selected Transport values in the accessibility tree, focus containment/return, serialized add/update requests and preservation of server-owned clients during editing. HTTP responses are stubbed in this browser check; the form, selectors, validation and serialization code are real. This check is now part of CI.

All 11 main upstream CI checks passed on 823f149cc724ff048730d2cec8d0ab48cc4bbcfb, including the new keyboard/accessibility-tree step: CI run.

Protocol availability, option values, edit-mode protocol disabling, defaults, conditional settings, transport/security side effects and localization were preserved. No Go implementation, API contract, database schema, Xray configuration generator, quota/expiry logic, dependency or translation key was changed. The accessibility work from #6907 remains intact.

Follow-up verification needed

Actual TalkBack and NVDA testing has not been performed. Chromium AX checks and mobile viewport emulation do not verify Android's accessibility service, spoken announcements or touch exploration.

Before considering this issue resolved, please verify on Android TalkBack + Chrome and desktop NVDA:

  1. Discover Protocol/Transport/encryption by their labels, open the native picker, navigate and select options, and hear the selected value. Cancel a picker and confirm that its value/focus remain unchanged.
  2. Exercise Security and dependent fields, plus searchable node/fallback selectors, clearing, disabled options, ALPN multi-selection and custom tags.
  3. Correct a validation error from another tab, complete a real create/edit operation against a running panel, and confirm Save/Close, Tab/Shift+Tab containment and focus return to the opener.
  4. Record OS, browser and screen-reader versions and the exact announcement/gesture sequence for any remaining mismatch. Large dynamic lists should also be checked because rendering all options increases DOM work within this modal.

The manual checklist and repeatable test commands are documented. Broader dropdown accessibility outside the inbound workflow can be evaluated separately under the related reports #6832/#6107.

The PR uses Refs #7023, so it will not automatically close this issue before real screen-reader verification.

<!-- gh-comment-id:6501696328 --> @HamedSanaei commented on GitHub (Oct 29, 2026): Implementation submitted in **PR #7025**: https://github.com/MHSanaei/3x-ui/pull/7025 ### Findings This involves more than missing labels. Inspection of the installed Ant Design 6.6.7/rc-select implementation showed that virtualized Select renders option semantics on a hidden proxy containing the active item and its neighbors; the visible rows do not carry the same option semantics. Default popup placement also puts the list outside the `aria-modal` dialog. I evaluated `virtual={false}` against the rendered components and Chromium accessibility tree. It exposes the real list/option elements, but the closed single-select combobox still had an empty accessible value. A failing regression test reproduced this even after virtualization was disabled. Therefore, disabling virtualization alone was insufficient for the simple pickers. ### Implemented changes - Added a small themed native `<select>` component for short, single-value lists, including Protocol, Transport, encryption/auth choices and related protocol/security/transport settings. The browser supplies the control/option semantics, selected value and native picker interaction. - Preserved React Hook Form integration, refs, blur handling, existing labels/descriptions, typed string/number/empty values, disabled choices and fields, dynamic options and unlisted saved values. Existing `onChange`/`onAfterChange` side effects remain in place. - Kept searchable, clearable, autocomplete, tags and multi-select controls on Ant Design. Within the inbound modal, their options are rendered without virtualization and their popups stay inside the modal body. Application-wide Ant Design defaults are unchanged. - Named the Security radio group and connected translated RHF validation help to its input through accessible descriptions and invalid state. Regression coverage includes revealing/focusing an invalid field on another tab and preventing submission. - Added boundary-only Tab/Shift+Tab wrapping after a real Chromium keyboard reproduction showed focus could leave the document after the last modal button. Dropdown focus and native picker focus remain under the control's normal interaction model. - Updated the fixed-choice controls in the shared FinalMask, CustomSockopt and XDrive editors because these are also used by the inbound workflow. Their outbound consumers are covered by the full regression suite. ### Verification and preserved contracts The relevant defects were recorded as failing tests before their fixes. `make verify` passed, including frontend typecheck/lint/format checks, **2,030 tests across 219 files**, production and Storybook builds, Go tests/lint/build and generated-contract checks. A separate Playwright check passed **four workflows: desktop/mobile viewport × create/edit**. It uses real Chromium keyboard input, checks None/TLS/REALITY selection, desktop native-picker cancellation, selected Transport values in the accessibility tree, focus containment/return, serialized add/update requests and preservation of server-owned clients during editing. HTTP responses are stubbed in this browser check; the form, selectors, validation and serialization code are real. This check is now part of CI. All **11 main upstream CI checks passed** on `823f149cc724ff048730d2cec8d0ab48cc4bbcfb`, including the new keyboard/accessibility-tree step: [CI run](https://github.com/MHSanaei/3x-ui/actions/runs/40894130269). Protocol availability, option values, edit-mode protocol disabling, defaults, conditional settings, transport/security side effects and localization were preserved. No Go implementation, API contract, database schema, Xray configuration generator, quota/expiry logic, dependency or translation key was changed. The accessibility work from #6907 remains intact. ### Follow-up verification needed **Actual TalkBack and NVDA testing has not been performed.** Chromium AX checks and mobile viewport emulation do not verify Android's accessibility service, spoken announcements or touch exploration. Before considering this issue resolved, please verify on Android TalkBack + Chrome and desktop NVDA: 1. Discover Protocol/Transport/encryption by their labels, open the native picker, navigate and select options, and hear the selected value. Cancel a picker and confirm that its value/focus remain unchanged. 2. Exercise Security and dependent fields, plus searchable node/fallback selectors, clearing, disabled options, ALPN multi-selection and custom tags. 3. Correct a validation error from another tab, complete a real create/edit operation against a running panel, and confirm Save/Close, Tab/Shift+Tab containment and focus return to the opener. 4. Record OS, browser and screen-reader versions and the exact announcement/gesture sequence for any remaining mismatch. Large dynamic lists should also be checked because rendering all options increases DOM work within this modal. The [manual checklist and repeatable test commands](https://github.com/HamedSanaei/3x-ui/blob/codex/issue-7023-inbound-a11y/frontend/README.md#inbound-accessibility-verification) are documented. Broader dropdown accessibility outside the inbound workflow can be evaluated separately under the related reports #6832/#6107. The PR uses **`Refs #7023`**, so it will not automatically close this issue before real screen-reader verification.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4622
No description provided.