SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.51k stars 262 forks source link

[SF_ACC] [Input] Additional text in SuggestedItems are not being read #7607

Closed bonniegso closed 11 months ago

bonniegso commented 1 year ago

Bug Description

When navigating with a screen reader and keyboard through the suggested items in the Input component, only the "text" attribute is read and not the "additionaltext". It is expected that all visible text is read to screen reader users. SuggestionItem does not currently allow for custom aria-labels to be defined by consumers. An enhancement will be needed to either add the additionalText as part of the announcement for the item or functionality to allow consumers to define this aria-label.

Affected Component

Input

Expected Behaviour

It is expected that all visible text is read to screen reader users.

Isolated Example

https://lgww49.csb.app/

Steps to Reproduce

  1. Turn on JAWS Screenreader
  2. Open example in a browser
  3. Type something into the input field
  4. Using your keyboard navigate through the suggested items
  5. Observe that the additional text is not being read

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.14.5

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

SAP SuccessFactors

Declaration

plamenivanov91 commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-rl,

When a we navigate toward suggestion item with jaws (with turned off virtual cursor) only the texts is read but not the additionalText.

If I turn on virtual cursor, the additional text is read as well.

Is this expected behavior? If not, please review it as dev request.

Regards, Plamen Ivanov