kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

[Housekeeping] Refactor `Toggle` in `Reorder List` to comply with `ion-toggle` #3481

Open jakobe opened 1 month ago

jakobe commented 1 month ago

Describe the housekeeping request

We are currently using ion-toggle in a deprecated way regarding labels in Reorder List

Refactor Reorder List component to use ion-toggle with a label in it's default slot.

Read more: https://ionicframework.com/docs/api/toggle#migrating-from-legacy-toggle-syntax

Have you considered any alternatives?

We could use the legacy option, but this will also be removed in future version of Ionic:

Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.

Are there any additional context?

No.