-
Notifications
You must be signed in to change notification settings - Fork 374
[fix] add focus state and aria to select components #5596
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
Conversation
🎭 Playwright Test Results✅ All tests passed! ⏰ Completed at: 09/15/2025, 09:49:58 PM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
selectedCount.value > 0 | ||
? 'border-blue-400 dark-theme:border-blue-500' | ||
: 'border-transparent', | ||
'focus-within:border-blue-400 dark-theme:focus-within:border-blue-500', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The border color is being set in two places. It makes sense that focus-within would take precedence.
Want to wrap this in a cn()
to make sure the options merge in order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it's a little weird that we'd have focus states on both the trigger and the menu item...
576d0e3
to
eadbaf9
Compare
Summary
Focus states weren't working, especially when trying to use the selects with
TAB
indexes and your keyboard.Changes
Screenshots
Demo of working focus states:
MultiSelect-2025-09-15.mov
SingleSelect-2025-09-15.mov
┆Issue is synchronized with this Notion page by Unito