-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat(TransferList): Add transfer list component #1073
Conversation
In the W3 example when hitting the tab key the focus goes to the listbox, not the individual listbox items. The user can then use the keyboard up / down keys to select an item. I think this would be preferred over how it is functioning now. For example: if the left listbox had 100+ items, it would be painful to have to tab through all 100 items before focus moves over to the right listbox. I imagine to make that work I'll need to make these changes in this PR:
And the rest of the functionality would be added in JS / React. Is that a correct assumption? |
@@ -35,7 +35,8 @@ | |||
|
|||
.iui-input, | |||
.iui-input-with-icon, | |||
.iui-input-group { | |||
.iui-input-group, | |||
.iui-menu { |
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.
Maybe this should be .iui-menu[role='listbox']
instead?
I've re-run tests on GitHub a couple of times and I keep getting 1 failure. I'm not getting the failure when running tests locally. Unsure how to get this passing. |
I re-ran the tests, and CSS is passing entirely. I think the failures in React are legitimate. They are happening in the Select component, which is likely affected by your changes. |
@@ -4,6 +4,10 @@ | |||
|
|||
.iui-menu { | |||
@include iui-list-menu; | |||
|
|||
.iui-listbox-wrapper & { |
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.
Thank you @elephantcatdog for the tip as to what was failing. This change fixed the failed test images:
- &:where([role='listbox'])
+ .iui-listbox-wrapper & {
But depending on how #843 pans out, this may not be needed. @mayank99
@FlyersPh9 I've created #1106, which has very minimal changes, but will allow you to use I also see some screenshots in #634 which I feel would need a bit more work. |
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.
It seems that I can't reach second ListBox with keyboard (Tab).
Screen.Recording.2023-05-24.at.12.16.02.mov
<LiveExample src='TransferList.main.tsx'> | ||
<AllExamples.TransferListMainExample client:load /> | ||
</LiveExample> | ||
|
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.
Can be done in future PRs: We need to give more info for our users about this component.
Reposting #1073 (comment) for visibility:
|
This has been fixed |
I have fixed this by adding |
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.
Looks good to me 🌵
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.
LGTM
Changes
TransferList
component which is used to move one or more items between lists..iui-list
from List component #1106.Closes #634.
Testing
Docs