Open hjorte-bd opened 2 years ago
To fix, libs/designsystem/src/lib/components/list/list-item/list-item.component.scss
simply need to be changed to:
@use '~@kirbydesign/core/src/scss/utils';
$divider-color: utils.get-color('background-color');
ion-item-sliding {
overflow: visible;
}
:host-context(.has-divider) {
ion-item-sliding:not(.last) {
border-bottom: 1px solid $divider-color;
}
}
Describe the bug
When using the
<kirby-list shape="none">
component, children inside will be wrapped in a ´kirby-list-item´ and ´ion-item-sliding´. These two wrapper elements hasoverflow: hidden
on, which will prevent effects like box-shadow to render properly outside those wrapper items.Describe how to reproduce the bug
(The "List No Shape" example, in the cookbook, shows off the issue)
Which Kirby version was used?
6.3.1
What was the expected behavior?
At least the box-shadow should expand outside the box edges (see screenshot below)
Add any screenshots
What happens: (Box shadow has color changed to pink for demonstrative purposes)
How it looks with
overflow: hidden
on both wrapper elements:Please complete the following information:
Are there any additional context?
No
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.
NOT verified
label has been removed by a member of team Kirby; do not proceed until this is doneImplementation
The contributor who wants to implement this issue should:
Review
Once the issue has been implemented and is ready for review: