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: remove unsupported ui-open class from Listbox button #137

Merged

Conversation

mnlfischer
Copy link
Contributor

@mnlfischer mnlfischer commented Jul 31, 2024

Description

We remove the ui-open state that gets applied when a listbox is inside a model/dialog. The ui-open state is always true when the outer dialog is in open state. This causes an always active ui-open state visually.
https://headlessui.com/v1/react/listbox#focus-management
The focus state is intended to get trapped and ui-open is not supported on the Listbox.Button component.

Copy link

linear bot commented Jul 31, 2024

@mnlfischer mnlfischer self-assigned this Jul 31, 2024
@mnlfischer mnlfischer requested a review from rodelta July 31, 2024 06:52
@mnlfischer mnlfischer merged commit 4124349 into main Jul 31, 2024
7 checks passed
@mnlfischer mnlfischer deleted the pla-1299-focus-state-on-listbox-is-wrong-in-dialogs branch July 31, 2024 10:14
@abusix-bot
Copy link
Collaborator

🎉 This PR is included in version 5.6.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants