FreedomScientific / standards-support

Contains documentation for Vispero software support of Web standards
https://freedomscientific.github.io/standards-support/
GNU General Public License v3.0
105 stars 11 forks source link

Aria label not getting announced #844

Closed kaustubh-vats closed 3 weeks ago

kaustubh-vats commented 4 weeks ago

Summary

Brief description of the issue. Please list any specific steps. I am using a JAWS version 2021, where I have added a div with tabIndex="0" and an aria label, the JAWS is reading the aria-label properly while navigating using tab keys. But on using JAWS version 2024, the aria label is not getting read out until I pass a role attribute along with the tabIndex=0. In JAWS 2024 version even if I pass role="region" then also the aria-label is not getting announced.

Example:

  1. Go to https://jsfiddle.net/u1ntr8L0/2/

Expected result

The aria-label should get announced, when div is getting focus

Actual result

Aria label is not getting announced when div is in focus.

Example

Screen recordings: With JAWS 2021 screen-capture (12).webm

With JAWS 2024 screen-capture (11).webm

Additional Information

JAWS version and build number

2021.2103.174 2024.2405.83

Operating System and version

Windows 11 Pro

Browser and version:

Google Chrome 125.0.6422.142 (Official Build) (64-bit) (cohort: Stable)

JAWS-test commented 3 weeks ago

No JAWS bug because a div is not allowed to have an aria-label: https://www.w3.org/TR/wai-aria-1.3/#generic

JAWS-test commented 3 weeks ago

Related: https://github.com/FreedomScientific/standards-support/issues/759

kaustubh-vats commented 3 weeks ago

@JAWS-test any reasons why role="region" is also not working. Do we have any specific documentation or information related to what roles are supported for reading accessible names.

Example where role="region" is present but aria-label not getting announced screen-capture (13).webm

Also as this was not the behavior in earlier JAWS version, is there any release notes for the same?

kaustubh-vats commented 3 weeks ago

Figured out the role="region" is not getting announced because my verbosity level doesn't include Region. Enabling that worked here. image

Just wanted to know about this recent enhancement has any release notes as this was not happening earlier

JAWS-test commented 3 weeks ago

@kaustubh-vats I'm not from Freedom Scientific, so I can't tell you why JAWS outputs aria-label for some roles and not for others, and why the behavior has changed from version to version. I can only say with reference to the ARIA specification that certain ARIA roles / HTML elements cannot be labeled with aria-label and therefore JAWS itself does not make a mistake if it does not output the aria-label for these roles or elements

stevefaulkner commented 3 weeks ago

Thanks both