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

SelectPanel2: Remove instant sorting in stories #3756

Merged
merged 8 commits into from
Sep 22, 2023

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Sep 21, 2023

Items should not move when selecting elements. From Chelsea:

the selection of items and should stay put until saved and the dialog reopened to bring the selected items to the top. The reverse is also true. Deselected items should not shift list position until saved and reopened

 

Note: This PR removes the divider and does not implement the second part of #2644 (when the input filter is emptied, selected items should be moved to the top). Keeping #2644 open until I add that.

 

Before After
sorting-before.mov
sorting-after.mov

@siddharthkp siddharthkp requested review from a team and joshblack September 21, 2023 12:01
@changeset-bot

This comment was marked as resolved.

@siddharthkp siddharthkp requested review from broccolinisoup and removed request for joshblack September 21, 2023 12:02
@siddharthkp siddharthkp self-assigned this Sep 21, 2023
@siddharthkp siddharthkp changed the title SelectPanel2: Remove instant + divider in stories SelectPanel2: Remove instant sorting in stories Sep 21, 2023
@siddharthkp siddharthkp added the skip changeset This change does not need a changelog label Sep 21, 2023
@@ -58,6 +58,7 @@ const SelectPanel = props => {
}
// @ts-ignore todo
const onInternalSubmit = event => {
event.preventDefault()
Copy link
Member Author

Choose a reason for hiding this comment

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

(intentional change) Bonus nice to have!

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
dist/browser.esm.js 100.74 KB (0%)
dist/browser.umd.js 101.32 KB (0%)

Copy link
Member

@broccolinisoup broccolinisoup left a comment

Choose a reason for hiding this comment

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

🚀
Love these incremental PRs! And thanks for adding great summaries to the PR description, it helps a ton with understanding the accessibility reasonings of the changes.

@siddharthkp siddharthkp added this pull request to the merge queue Sep 22, 2023
Merged via the queue into main with commit acb653b Sep 22, 2023
48 of 49 checks passed
@siddharthkp siddharthkp deleted the drafts-selectpanel-sorting branch September 22, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants