Skip to content

Commit

Permalink
Style kirby list when inside kirby accordion item
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzy3 committed Sep 23, 2024
1 parent ab2cc17 commit 9cc891f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libs/designsystem/list/src/list-item/list-item.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ $divider-color: utils.get-color('background-color');
border-bottom: 1px solid $divider-color;
}
}

:host-context(kirby-list.transparent) {
ion-item-sliding {
--kirby-item-background: transparent;
}
}
3 changes: 2 additions & 1 deletion libs/designsystem/list/src/list.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Component,
ContentChild,
ElementRef,
EventEmitter,
HostBinding,
Input,
Expand Down Expand Up @@ -164,7 +165,7 @@ export class ListComponent implements OnInit, OnChanges {
_groupedItems: any[];
_selectedItem: any;

constructor(private listHelper: ListHelper) {}
constructor(private listHelper: ListHelper, public elem: ElementRef) {}

ngOnInit() {
this._isSelectable = this.itemSelect.observers.length > 0;
Expand Down

0 comments on commit 9cc891f

Please sign in to comment.