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.55k stars 266 forks source link

[SF_ACC][Input]: Incorrect tabbing order in Input with suggestions #7594

Closed ksblklu closed 10 months ago

ksblklu commented 1 year ago

Bug Description

When use keyboard arrow keys to navigate the input suggestions, the clear icon was first read before the suggestions item. Also the inactive suggestion item is not read by screen reader.

Affected Component

ui5-input

Expected Behaviour

Once expands the input combobox and press arrow key -> Focus should move to "No matches" and it should announce by screenreader.

Isolated Example

No response

Steps to Reproduce

  1. Go to https://codesandbox.io/p/sandbox/compassionate-snowflake-t48gy4?file=/src/App.tsx:44,28
  2. Type any text in input field
  3. Observe there were 1 suggestion item rendered below the input
  4. Use arrow key navigate to the "No matches" suggestion item, with JAWS 2022.
  5. The "clear icon" was read, and the suggestion item was not read by screen reader

Log Output, Stack Trace or Screenshots

image

Priority

Medium

UI5 Web Components Version

1.17.0

Browser

Chrome

Operating System

Windows

Additional Context

No response

Organization

SuccessFactors

Declaration

elenastoyanovaa commented 1 year ago

Hello @ksblklu ,

The recommended testing environment is always latest JAWS (apart from pre-release versions). So you need to test with JAWS 2023 latest patch.

I was unable to open your testing sample as it says: "Unable to start the microVM" I have tested with the suggestions sample https://sap.github.io/ui5-webcomponents/nightly/playground/?path=/story/main-input--suggestions

  1. Typed something - letter A
  2. Arrow Down to suggestions
  3. First list item is read out

Tested with JAWS 2023 and Chrome latest.

By analyzing your issue description I could assume three things:

Nevertheless, the issue is not reproducible in the storybook sample, with the latest JAWS so I am closing this issue. If you update JAWS and still see the issue, please reopen the issue, provide another example or point to a storybook sample with detailed information about the steps to reproduce.

Kind Regards, Elena

ksblklu commented 10 months ago

Hi @elenastoyanovaa I checked the code sandbox example, it should be accessible now, and I tested it again with an inactive suggestionItem, still the inactive suggestion item was not read by NVDA/JAWS, could you please help check it? Thanks a lot.

image
ilhan007 commented 10 months ago

Hi colleagues @elenastoyanovaa @SAP/ui5-webcomponents-topic-rl can you re-check the issue with the latest information provided by the author.

elenastoyanovaa commented 10 months ago

Hello,

The inactive items are not read by design. They do not have a meaning to the screenreader user as they are options that could not be chosen. The sample you provided is not well construct as you are trying to show a message to a user by using suggestion items. Several points should be made here:

Kind Regards, Elena