kirbydesign / designsystem

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

[BUG] Item with checkbox/radio and complex content structure not supported #3658

Closed RasmusKjeldgaard closed 1 month ago

RasmusKjeldgaard commented 1 month ago

Describe the bug

The following use case with multiple elements in the end slot of item,and a label that is related to the checkbox in the start/default slot of item is no longer supported.

Describe how to reproduce the bug

<kirby-item>
  <data slot="end" class="kirby-text-bold">1234</data>
  <kirby-checkbox slot="end"></kirby-checkbox>
  <kirby-label>
    <h3>Label text for checkbox</h3>
    <p detail>Detail for checkbox</p>
  </kirby-label>
</kirby-item> 

Which looks like this:

image

Which Kirby version was used?

9.7.0

What was the expected behavior?

I expect it to look like this:

image

Please complete the following information:

Are there any additional context?


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: