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

refactor(sbb-selection-panel, sbb-checkbox, sbb-radio-button): split into regular and panel variants #2778

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

kyubisation
Copy link
Contributor

Closes #2395

BREAKING CHANGE: sbb-selection-panel has been renamed to sbb-selection-expansion-panel. The sbb-checkbox and sbb-radio-button components cannot be used anymore with sbb-selection-expansion-panel (does not apply for cases where they are slotted inside the content slot). As a replacement, we introduce the new components sbb-checkbox-panel and sbb-radio-button-panel, which could also be used standalone in cases where there is no content. sbb-checkbox-group and sbb-radio-button-group also support the panel variants. How to migrate?

  • Rename usages of sbb-selection-panel to sbb-selection-expansion-panel.
  • Inside the sbb-selection-expansion-panel, replace sbb-checkbox with sbb-checkbox-panel and sbb-radio-button with sbb-radio-button-panel (does not apply for cases where they are slotted inside the content slot of the sbb-selection-expansion-panel)
  • In cases where there was no content (slot), don't use sbb-selection-panel/sbb-selection-expansion-panel anymore, but directly use sbb-checkbox-panel or sbb-radio-button-panel.

Originally #2552, which needed to be reverted and now re-applied.

…into regular and panel variants

Closes #2395

BREAKING CHANGE: `sbb-selection-panel` has been renamed to `sbb-selection-expansion-panel`. The `sbb-checkbox` and `sbb-radio-button` components cannot be used anymore with `sbb-selection-expansion-panel` (does not apply for cases where they are slotted inside the `content` slot). As a replacement, we introduce the new components `sbb-checkbox-panel` and `sbb-radio-button-panel`, which could also be used standalone in cases where there is no content. `sbb-checkbox-group` and `sbb-radio-button-group` also support the panel variants.
How to migrate?
- Rename usages of `sbb-selection-panel` to `sbb-selection-expansion-panel`.
- Inside the `sbb-selection-expansion-panel`, replace `sbb-checkbox` with `sbb-checkbox-panel` and `sbb-radio-button` with `sbb-radio-button-panel` (does not apply for cases where they are slotted inside the `content` slot of the `sbb-selection-expansion-panel`)
- In cases where there was no content (slot), don't use `sbb-selection-panel`/`sbb-selection-expansion-panel` anymore, but directly use `sbb-checkbox-panel` or `sbb-radio-button-panel`.

---------

Co-authored-by: Davide Mininni <[email protected]>
Co-authored-by: Jeremias Peier <[email protected]>
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Jun 14, 2024
@kyubisation kyubisation merged commit d206926 into main Jun 14, 2024
25 of 27 checks passed
@kyubisation kyubisation deleted the refactor-selection-panel-revert-apply branch June 14, 2024 14:09
@github-actions github-actions bot removed the pr: peer review required A peer review is required for this pull request label Jun 14, 2024
This was referenced Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate checkbox and radio buttons into base components and panel components
2 participants