Skip to content

fix(a11y): name controls by their visible text and fix ARIA roles - #375

Merged
Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/a11y-names-roles
Nov 25, 2026
Merged

Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/a11y-names-roles

Conversation

@repires

@repires repires commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Part of #354.

From re-auditing master with axe in both themes (every screen reachable from the title bar and menus, plus remote detail and the Mount/Operations/Serve views).

What

Accessible names that didn't contain the visible text (label-content-name-mismatch; speech input users say what they see, e.g. "click Bisync"):

  • Add-remote menu items: aria-label="Quick Remote" on an item showing "Quick Remote Ctrl + R". Same fix as the app menu in fix(a11y): name icon buttons and correct ARIA roles found by an axe audit #355: no aria-label, the shortcut stays aria-hidden.
  • Overview header backend switch: named "Current mode: RClone Manager - Click to switch backend" while showing "RClone Manager / Local". It's now named by its visible title and backend, with "Manage Backends" as its tooltip/description. The logo inside is decorative (alt="") so the title isn't read twice, and the now unused backendSwitchAria string is removed from all languages.
  • Remote detail action pills: named "Start Bi-Sync" while showing "Bisync". They're toggle buttons with aria-pressed, so the visible text is the name and the tooltip describes the action. ActionViewModel.ariaLabel goes away.
  • Rclone Flags "Reset All to Default": the longer "Reset all Rclone flags to default values" moves from aria-label to the tooltip.

ARIA roles:

  • Remote config sidebar: aria-selected isn't allowed on navigation list items (34 nodes, critical). The current step is aria-current="step", the selected profile aria-current="true".
  • About: its pages were role="tab" in a tablist, with a second tablist and dividers nested inside the first (critical). They open sub-pages rather than switching panels, so they're plain buttons now.

Landmarks and headings:

  • The general and Quick Run overviews set role="main" inside the workspace shell's <main>, so home and Flow had two main landmarks, one nested in the other.
  • The file browser as an overlay or picker had no main landmark at all. fix(a11y): give each page a main landmark and a heading #356 left it out because the main UI behind already had one, but since fix(a11y): make the UI behind full-window overlays inert #366 everything behind a covering overlay is inert, so that landmark is gone too. The file browser is now always the page's main with its hidden h1, and isNautilusPageView is no longer needed.
  • Remote card names were h4 directly under the h2 overview title; they're h3 now (their class sets the size).

Not in this PR

Tests

  • New and updated tests: add-menu items and the backend switch are named by their text, the logo is decorative, card names are h3, the action pills have no aria-label, and About's page list has no tab roles and no axe violations. They fail against master's templates.
  • Checked in the headless UI with Playwright, both themes, before → after: aria-allowed-attr 34 → 0, aria-required-children 4 → 0, heading-order 15 → 0, label-content-name-mismatch 25 → 0, all main/heading landmark findings 37 → 0.
  • Full suite (3663 tests; two timing-sensitive tests timed out once under load and pass on their own), ESLint, Prettier, audit:i18n and ng build pass.

repires and others added 2 commits November 25, 2026 02:03
Findings from re-auditing master with axe (Zarestia-Dev#354):
- Names that did not contain the visible text, which breaks speech
  input: the add-remote menu items (the app menu had this fixed in Zarestia-Dev#355),
  the overview header's backend switch, the remote detail action pills
  and the Rclone Flags reset button. They are now named by their text;
  the longer wording stays as the tooltip. The backend switch's logo
  is decorative, and its unused aria string is removed.
- The remote config sidebar put aria-selected on navigation list items;
  the current step or profile is aria-current instead.
- About listed its pages as tabs, with a second tab list and dividers
  inside the first. They open sub-pages, so they are plain buttons.
- The general and Quick Run overviews added role="main" inside the
  workspace shell's <main>, so the page had two.
- The file browser as an overlay or picker had no main landmark: since
  Zarestia-Dev#366 everything behind it is inert, so it is always the page's main.
- Remote card names were h4 under the h2 overview title; now h3.
@Hakanbaban53
Hakanbaban53 merged commit e685dd0 into Zarestia-Dev:master Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants