kirbydesign / designsystem

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

[BUG] #3691

Closed troelslenda closed 3 weeks ago

troelslenda commented 3 weeks ago

Describe the bug

When adding a kirby-dropdown to a kirby-card and the dropdown exceeds the cards borders, it's cropped due to overflow:hidden. Explanation of applied labels can be found here: https://github.com/kirbydesign/designsystem/labels

## Describe how to reproduce the bug Bug replicated here https://github.com/kirbydesign/designsystem/tree/bug/card-overflow Go to Dropdown and interact with the first dropdown.

Which Kirby version was used?

develop as of today

## What was the expected behavior? That you can see all items of the dropdown

Add any screenshots

Screenshot 2024-11-01 at 13 33 45

Please complete the following information:

Are there any additional context?

I understand the reasoning for overflow hidden in cards, not wanting the content to bleed out of a small container, but that will only happen on the X axis.

Is it possible to lift the overflow restriction to overflow-x: hidden?


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:

RasmusKjeldgaard commented 3 weeks ago

@troelslenda you should be able to set usePopover to true to avoid this. Let me know if it fixes your issue.

troelslenda commented 3 weeks ago

It did indeed.