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

chore: chip selection rework #422

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Conversation

Xiaoy312
Copy link
Contributor

@Xiaoy312 Xiaoy312 commented Dec 7, 2022

GitHub Issue (If applicable): closes #337, closes #354, re: #356

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

What is the new behavior?

  • reworked ChipGroup selection logics
  • existing Single selection mode now enforces a default selection and prevent the deselection of currently selected item (RadioGroup-like)

    which aligns with the same-named mode in ListView

  • legacy Single selection mode is available as SingleOrNone
  • added tests for ChipGroup selection

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20221206/chip-select-rework branch 2 times, most recently from 7e6d472 to 5361998 Compare December 7, 2022 23:43
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-422.eastus2.azurestaticapps.net

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-422.eastus2.azurestaticapps.net

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20221206/chip-select-rework branch from 5361998 to 16a7509 Compare December 8, 2022 17:09
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-422.eastus2.azurestaticapps.net

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20221206/chip-select-rework branch from 16a7509 to 37a7dfc Compare December 8, 2022 17:27
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-422.eastus2.azurestaticapps.net

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20221206/chip-select-rework branch from 37a7dfc to a62b5eb Compare December 19, 2022 16:19
@Xiaoy312 Xiaoy312 enabled auto-merge (squash) December 19, 2022 16:19
@github-actions
Copy link

github-actions bot commented Dec 19, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-422.eastus2.azurestaticapps.net

@Xiaoy312 Xiaoy312 merged commit 0f20755 into main Dec 19, 2022
@Xiaoy312 Xiaoy312 deleted the dev/xygu/20221206/chip-select-rework branch December 19, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ChipGroup] add support for RadioGroup-like behavior review Chip/ChipGroup impl
4 participants