microsoft / microsoft/fluentui-contrib
[A11y] Actions component navigation for '@fluentui-contrib/react-chat'
@YuanboXue-Amber is already working on this.
Since Jan 6, 2025.
- Dominant language
- TypeScript
- Stars
- 56
- Forks
- 62
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Description
Currently, the body of the message components in '@fluentui-contrib/react-chat' are considered tabbable elements. However, when the actions component is specified for my message FluentUI component, it is added at the same level as the body component. This breaks the keyboard navigation hierarchy, as both the actions and message body are on the same level. As a result, actions are accessible with the Tab key instead of the Enter key.
Steps to Reproduce:
- Use '@fluentui-contrib/react-chat' to create a chat interface.
- Add actions buttons list
- Specify an actions component at the same level as the message body.
- Attempt to navigate using the keyboard.
Expected Behavior: The actions component should be accessible with the Enter key, maintaining a proper keyboard navigation hierarchy.
Actual Behavior: The actions component is accessible with the Tab key, disrupting the expected navigation flow
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.