Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keyboard navigation for message menu button #5576

Merged
merged 23 commits into from
Jan 21, 2025

Conversation

vhuseinova-msft
Copy link
Member

What

  • updated keyboard navigation for messages (only the inner fluent message component is accessible for keyboard navigation)
  • removed usage of FluentUI actions component for message (discussed with FluentUI team and they mentioned that it's not recommended to use it as it breaks keyboard navigation)
  • moved message actions menu implementation

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

1 similar comment
Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

Copy link
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

github-actions bot commented Jan 20, 2025

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 27905 / 44311
62.97%
27905 / 44311
62.97%
782 / 1423
54.95%
2316 / 3695
62.67%
Current 27886 / 44346
62.88%
27886 / 44346
62.88%
783 / 1424
54.98%
2329 / 3699
62.96%
Diff -19 / 35
-0.09%
-19 / 35
-0.09%
1 / 1
0.03%
13 / 4
0.29%

Copy link
Contributor

github-actions bot commented Jan 20, 2025

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 56708 / 93467
60.67%
56708 / 93467
60.67%
1156 / 2669
43.31%
3425 / 5692
60.17%
Current 56770 / 93531
60.69%
56770 / 93531
60.69%
1157 / 2670
43.33%
3411 / 5686
59.98%
Diff 62 / 64
0.02%
62 / 64
0.02%
1 / 1
0.02%
-14 / -6
-0.19%

@vhuseinova-msft vhuseinova-msft added the update_snapshots Set this label to request automated update of UI snapshots label Jan 21, 2025
@github-actions github-actions bot removed the update_snapshots Set this label to request automated update of UI snapshots label Jan 21, 2025
@vhuseinova-msft vhuseinova-msft added the update_snapshots Set this label to request automated update of UI snapshots label Jan 21, 2025
…ication-ui-library into vhuseinova/message-menu-fix
@vhuseinova-msft vhuseinova-msft added update_snapshots Set this label to request automated update of UI snapshots and removed update_snapshots Set this label to request automated update of UI snapshots labels Jan 21, 2025
*
* @param node - The HTMLDivElement from which to remove the keyboard navigation styles. If null, the function does nothing.
*/
export const removeFluentUIKeyboardNavigationStyles = (node: HTMLDivElement | null): void => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious; how stable is this going to be?
Do we have tests to cover the changes when fluent gets updated?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's removed every time when a body component ref is set or changed (see the usage).
Yeah, I was thinking about the testing too and one of the cases that I see is to test that the keyboard navigation is actually correct but not sure what else we can do here.

Please share suggestions if any :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the keyboard navigation tests

Copy link
Contributor

CallWithChat bundle size is not changed.

  • Current size: 12401112
  • Base size: 12401112
  • Diff size: 0

Copy link
Contributor

Calling bundle size is not changed.

  • Current size: 12401100
  • Base size: 12401100
  • Diff size: 0

Copy link
Contributor

Chat bundle size is increased❗.

  • Current size: 1783692
  • Base size: 1783440
  • Diff size: 252

Copy link
Contributor

@vhuseinova-msft vhuseinova-msft merged commit 765d226 into main Jan 21, 2025
41 checks passed
@vhuseinova-msft vhuseinova-msft deleted the vhuseinova/message-menu-fix branch January 21, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants