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(button-group): handle keyboard focus for async menu buttons #1142

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

kevinbuhmann
Copy link
Member

PR Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • [N/A] Docs have been added / updated (for bug fixes / features)
  • [N/A] If applicable, have a visual design approval

PR Type

Bugfix

What is the current behavior?

If button group menu buttons are populated asynchronously, focus is not handled properly and the menu is not closed when one of the menu buttons is activated.

Issue Number: #952, CDE-1571

What is the new behavior?

With both synchronous and asynchronous population, focus is moved to the first menu button when the button group menu is opened, keyboard focus works properly, and the menu is closed when one of the menu buttons is activated.

Does this PR introduce a breaking change?

No

@kevinbuhmann kevinbuhmann requested a review from a team January 19, 2024 13:44
@kevinbuhmann kevinbuhmann self-assigned this Jan 19, 2024
Copy link
Contributor

github-actions bot commented Jan 19, 2024

👋 @kevinbuhmann,

  • 🙏 The Clarity team thanks you for opening a pull request
  • 🎉 The build for this PR has succeeded
  • 🔍 The PR is now ready for review
  • 🍿 In the meantime, view a preview of this PR
  • 🖐 You can always follow up here. If you're a VMware employee, you can also reach us on our internal #clarity-support Slack channel

Thank you,

🤖 Clarity Release Bot

Copy link
Contributor

@valentin-mladenov valentin-mladenov left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinbuhmann kevinbuhmann merged commit fa1da8a into main Jan 19, 2024
4 checks passed
@kevinbuhmann kevinbuhmann deleted the kevin/button-group-async-menu branch January 19, 2024 14:47
kevinbuhmann added a commit that referenced this pull request Jan 19, 2024
With both synchronous and asynchronous population, focus is moved to the
first menu button when the button group menu is opened, keyboard focus
works properly, and the menu is closed when one of the menu buttons is
activated.

CDE-1571
closes #952
kevinbuhmann added a commit that referenced this pull request Jan 19, 2024
This is a port of fa1da8a (#1142) to 17.x.

With both synchronous and asynchronous population, focus is moved to the
first menu button when the button group menu is opened, keyboard focus
works properly, and the menu is closed when one of the menu buttons is
activated.

CDE-1571
closes #952
kevinbuhmann added a commit that referenced this pull request Jan 19, 2024
This is a port of fa1da8a (#1142) to 15.x.

With both synchronous and asynchronous population, focus is moved to the
first menu button when the button group menu is opened, keyboard focus
works properly, and the menu is closed when one of the menu buttons is
activated.

CDE-1571
closes #952
kevinbuhmann added a commit that referenced this pull request Jan 22, 2024
This is a port of fa1da8a (#1142) to 17.x.

With both synchronous and asynchronous population, focus is moved to the
first menu button when the button group menu is opened, keyboard focus
works properly, and the menu is closed when one of the menu buttons is
activated.

CDE-1571
closes #952
kevinbuhmann added a commit that referenced this pull request Jan 22, 2024
This is a port of fa1da8a (#1142) to 15.x.

With both synchronous and asynchronous population, focus is moved to the
first menu button when the button group menu is opened, keyboard focus
works properly, and the menu is closed when one of the menu buttons is
activated.

CDE-1571
closes #952
Copy link
Contributor

🎉 This PR is included in version 16.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants