FreedomScientific / standards-support

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

When element having aria-label and title it reads both content. #697

Closed kmkrish001 closed 1 year ago

kmkrish001 commented 1 year ago

Summary

When element having aria-label and title it reads both content.

Expected result

Need to read the aria-label only

Actual result

Reads both aria-label and title.

Example

https://stackblitz.com/edit/typescript-laaqww?file=index.html

use tab key to focus button, then will see that both aria-label and title content was read.

Additional Information

JAWS version and build number

JAWS 2022

Operating System and version

Windows 10

Browser and version:

chrome 109.0.5414.120

stevefaulkner commented 1 year ago

@kmkrish001 it is he expected and correct behaviour for the aria-label and the title attribute content to be announced. When a <button> has both the aria-label= the accessible name and the title= accessible description both of which are announced by default for controls. Refer to 4.1.4 button Element Accessible Name Computation and 4.2 Accessible Description Computation

JAWS-test commented 1 year ago

in your example the value of aria-label is "Remove button, press enter to activate", the visual label is "click"

Please note the following things: