[A11y] [Issue 8] Incorrect focus order within chat #3135
Labels
area-accessibility
bug
Indicates an unexpected problem or an unintended behavior.
external-healthbot
8 Severity 2 – Incorrect focus order within chat
Background
After the answering the consent question and selecting “I agree” button, focus remains on that control instead of moving into the new message with new question/buttons. When pressing tab once, focus goes to “I don’t agree” button (which is still in the previous message where the question has already been answered). After answering any question, focus should move to the latest focusable button/link in the new message, in this case, it would be “United States” as shown in the screen shot below.
Investigation notes
After the "I agree" button is clicked and before new content is shown, the focus left is still left on the "I agree" button. Thus, next TAB is going to "I don't agree" instead.
We understand a lot of developers are using hero card and Adaptive Cards to prompt, thanks to their flexibility.
We also understand a lot of developers disable the send box for usability reasons.
We need to investigate multiple solutions:
Update of 2020-05-11 and 2020-05-17
According to WAI-ARIA Authoring Practices 1.1 Section 6.2 Discernible and Predictable Keyboard Focus
We should move focus when:
After a new activity with interactive UI is received, check if the focus is currently on the transcript of a disabled interactive UIIf the focus was on a disabled UI, move the focus to the first interactive UI of the recently received activity[Bug]
The text was updated successfully, but these errors were encountered: