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.47k stars 254 forks source link

[ui5-multi-combobox | a11y]: Irrelevant & wrong information are read out #8908

Open f16r opened 1 month ago

f16r commented 1 month ago

Bug Description

A: After pressing Arrow Down Key "No Tokens" gets announced again (Irrelevant information) B: After removing one item "Contains 1 token" gets announced even though there are no tokens (Wrong Information)

Affected Component

ui5-multi-combobox

Expected Behaviour

A: "No Tokens" is not read B: "Contains 0 token"

Isolated Example

https://sap.github.io/ui5-webcomponents/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG5cbjxoZWFkPlxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG4gICAgPC9zdHlsZT5cblxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG4gICAgPC9zdHlsZT5cblxuICAgIDxtZXRhIGNoYXJzZXQ9XCJVVEYtOFwiPlxuICAgIDxtZXRhIG5hbWU9XCJ2aWV3cG9ydFwiIGNvbnRlbnQ9XCJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MS4wXCI-XG4gICAgPHRpdGxlPlNhbXBsZTwvdGl0bGU-XG48L2hlYWQ-XG5cbjxib2R5IHN0eWxlPVwiYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tc2FwQmFja2dyb3VuZENvbG9yKTsgaGVpZ2h0OiAzNTBweDtcIj5cbiAgICA8IS0tIHBsYXlncm91b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lbmQgLS0-XG4gICAgICAifSwibWFpbi5qcyI6eyJuYW1lIjoibWFpbi5qcyIsImNvbnRlbnQiOiIvKiBwbGF5Z3JvdW5kLWhpZGUgKi9cbmltcG9ydCBcIi4vcGxheWdyb3VuZC1zdXBwb3J0LmpzXCI7XG4vKiBwbGF5Z3JvdW5kLWhpZGUtZW5kICovXG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMvZGlzdC9NdWx0aUNvbWJvQm94LmpzXCI7XG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMvZGlzdC9NdWx0aUNvbWJvQm94SXRlbS5qc1wiOyJ9fQ

Steps to Reproduce

A: Irrelevant information:

  1. Press "Arrow Down" Key to focus first element in the list -> "No Tokens"

B: Wrong information:

  1. Press "Arrow Down" Key to focus first element in the list (Albania)
  2. Press "Enter" Key to select the focused element (Albania)
  3. Press "Arrow Left" Key to select previously added element (Albania)
  4. Press "Delete" to remove Albania -> "Contains 1 token"

Log Output, Stack Trace or Screenshots

image

Priority

Medium

UI5 Web Components Version

1.24.0

Browser

Chrome

Operating System

No response

Additional Context

JAWS version: 2023.2307.37

Organization

CBC

Declaration

niyap commented 1 month ago

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

Open the sample: https://sap.github.io/ui5-webcomponents/components/MultiComboBox/ Focus the first ui5-multi-combobox, press BACKSPACE to focus the token, press backspace once again to delete it -> When the token is deleted, "Contains one token" is announced which in not correct. Then press arrow down in order to select the first suggestion -> "No tokens" is announced which is not expected.

The issue is not reproducible in ui5-multi-input. Related to: #8567

Could you please look over?

Thank you in advance!

Kind Regards, Niya

nikoletavnv commented 2 weeks ago

The bug is also reproduceable in 2.0.0-rc.6. The bug is also reproduceable if token has been deleted pressing the token "x" icon. The announcement for "No tokens" (after a token has been deleted ) is when the input is focused out. Till then JAWS announces the old number of tokens.