nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
Other
2.09k stars 629 forks source link

NVDA is not reading sort options for column headers. #9017

Open bhavya974 opened 5 years ago

bhavya974 commented 5 years ago

NVDA is not reading sort options for column headers. Once user press enter and the table is sorted then NVDA is reading that grid is sorted in either descending/ascending order.

Steps to reproduce:

  1. Open the zip file and select the html file.
  2. Open the html page in Google Chrome.
  3. Start NVDA.
  4. Navigate to column header "Amount".

Actual behavior:

NVDA is not reading sort options for column headers. Once user press enter and the table is sorted then NVDA is reading that grid is sorted in either descending/ascending order. But initially when focus is on column header its not reading that user can perform sorting when he/she press enter.

Expected behavior:

NVDA should read that there is an option for the user to sort the column headers and instructions to perform sorting

System configuration:

NVDA Installed/portable/running from source: Installed

NVDA version: 2018.2.1

Windows version: 10.0.17763 Build 17763

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

Chrome- Version 70.0.3538.110 (Official Build) (64-bit)

Other information about your system:

Other questions:

Does the issue still occur after restarting your PC?

Yes, it does.

Have you tried any other versions of NVDA?

No, I didn't. NVDA_Column_header_sortopt.zip

Adriani90 commented 4 years ago

This is still reproducible in Firefox 71 and Chrome 79 with NVDA 2019.3 Beta 1. In Internet explorer it works as expected.

Adriani90 commented 4 years ago

Here is also a codepen for this:

https://codepen.io/anon/pen/EzNoGP?&editable=true

camiloorrego commented 3 years ago

I'm using the version 2020.4 and I only have this problem when I'm using shortcut keys (Control + Alt + Arrows)

How can I fix it?

Adriani90 commented 3 months ago

This is reproducible in all browsers with NVDA 2024.2 Beta still while using browse mode. Take following isolated test case:

data:text/html,<table> <caption> Steering Committee Members </caption> <thead> <tr> <th> <button>First Name</button> </th> <th aria-sort="ascending"> <button>Last Name</button> </th> <th> <button>Company</button> </th> <th>Email</th> </tr> </thead> <tbody> %E2%80%A6 </tbody> </table>
  1. Navigate with arrow keys in browse mode
  2. Navigate with tab in browse mode
  3. Navigate with b for buttons (quick navigation key) in browse mode

Actual behavior: in all 3 cases NVDA doesn't report the current sort status of the "last name" column. The sort status is set on the parent element of the button, so NVDA does not report it.

Expected behavior: NVDA should report in all 3 cases "last name button sorted descendent) or "last name button sorted ascendent" or what ever the sort status is, even if the status is set on the parent element of the button.

Note: Jaws report the sort status in the virtual document as expected when focusing the button with its virtual cursor.

cc: @SaschaCowley