Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria-sort is not working for tables with pagination enabled #17732

Closed
luizas opened this issue Feb 24, 2025 · 1 comment
Closed

Aria-sort is not working for tables with pagination enabled #17732

luizas opened this issue Feb 24, 2025 · 1 comment

Comments

@luizas
Copy link

luizas commented Feb 24, 2025

When the aria-sort attribute is applied to the table header to indicate the sorting order, the screen reader fails to announce 'sorting ascending' or 'sorting descending' as expected. This issue specifically arises in cases where the table includes pagination. Despite the pagination, the entire dataset is sorted, not just the rows that are currently visible on the screen. The lack of proper announcements by the screen reader for the sorting state (ascending or descending) makes it difficult for users relying on assistive technologies to understand the current sorting order of the entire table, especially when navigating across multiple pages of content

Steps to reproduce:

  1. Open https://codepen.io/luizas/pen/gbYmWdY (Edge).
  2. Run NVDA.
  3. Press on header (First Name) using the mouse, spacebar, or Enter key.
  4. Listen to the screen reader.

Actual behavior:

The screen reader reads: 'First Name.'

Expected behavior:

Screen reader reads - Sorting ascending / Sorting descending.

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

NVDA version:

2024.4.1

Windows version:

Windows 11 Enterprise

Name and version of other software in use when reproducing the issue:

Other information about your system:

Edge:Version 133.0.3065.82 (Official build) (64-bit)

Other questions

Does the issue still occur after restarting your computer?

yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

If NVDA add-ons are disabled, is your problem still occurring?

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

@gerald-hartig
Copy link
Collaborator

Closing issue. This is an HTML authoring issue. ARIA sort is being set on the button inside the TH and you're changing it on the button. It should only be set on the row or column header.

@gerald-hartig gerald-hartig closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2025
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

No branches or pull requests

2 participants