-
Notifications
You must be signed in to change notification settings - Fork 76
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
List: Support keyboard dragging between different Lists #7537
Comments
Effort should be considered with the effort in #7426 |
Dependent on the |
@geospatialem I'd like to implement a menu to be able to move items up, down, first, last and between lists. Something like: https://atlassian.design/components/pragmatic-drag-and-drop/examples/#list However, to do this, the current space bar key for starting movement would need to change to open a menu. Would we want to pursue this route in place of the existing functionality of moving with arrow keys? |
@driskull This sounds like a great approach! But would think this would fall into a breaking change, is it something we could hold off on until late 2024? |
Yes, if we want to move this issue to another milestone. |
This is going to require a new internal component to handle the dropdown menu. I can't use |
@geospatialem if we don't want a dropdown menu to move, we could go with a dialog like shown Dialog design: https://atlassian.design/components/pragmatic-drag-and-drop/examples/#tree @ashetland @SkyeSeitz what are your thoughts? |
@ashetland sorry, see the tree example: https://atlassian.design/components/pragmatic-drag-and-drop/examples/#tree |
Oh! Thanks, @driskull. I definitely prefer the dropdown menu of the Dialog. It's harder to track context in the state. |
What's the issue with the dropdown approach? In the linked examples, [enter], [space], and [down-arrow] all open the menu. |
Nothing, I just wanted to consult some designers to make sure we're taking the right approach. |
Awesome. Really like this direction. Also like that click+drag doesn't open the menu, but a simple click does open it. |
When moving lists, do you think it should move to the top or the bottom of the list? My initial feeling was the bottom but the demos linked move to the top. |
Top of the list feels more expected to me. This would also match the behavior of Combobox with |
**Related Issue:** #7537 ## Summary - add messages for translation
Check existing issues
Description
Be able to use the keyboard to drag between lists. Currently, you can only drag via keyboard within a List.
Acceptance Criteria
Grouping multiple lists together, be able to perform drag and drop of different list items with only the keyboard.
In terms of implementation, I'd assume using the left/right arrows when in keyboard drag mode on a List Item would just find the next List in the page (to the left or right) and then move the item to that List, if it exists.
Relevant Info
Ref to similar issue: #7046
Which Component
Calcite List
Example Use Case
In Instant Apps, our Position Manager ties 4 Calcite Lists together. The desire is to support keyboard only movement between the lists for accessibility.
Priority impact
p3 - want for upcoming milestone
Calcite package
Esri team
ArcGIS Instant Apps
The text was updated successfully, but these errors were encountered: