File tree 3 files changed +11
-17
lines changed
packages/calcite-components/src/components/list-item
3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 14
14
15
15
@include disabled ();
16
16
17
- .indent {
18
- @apply flex
19
- flex-col
20
- border-solid
21
- border- 0
22
- border-color- 3;
23
-
24
- margin-inline-start : var (--calcite-list-item-spacing-indent , theme (" spacing.6" ));
25
- }
26
-
27
17
.container {
28
18
@apply bg-foreground- 1
29
19
box-border
62
52
}
63
53
64
54
.nested-container {
65
- @apply flex flex-col ;
55
+ @apply hidden flex-col
56
+ border-solid
57
+ border- 0
58
+ border-color- 3;
59
+
60
+ margin-inline-start : var (--calcite-list-item-spacing-indent , theme (" spacing.6" ));
66
61
}
67
62
68
- .nested-container--hidden {
69
- @apply hidden ;
63
+ .nested-container--open {
64
+ @apply flex ;
70
65
}
71
66
72
67
.content-container {
Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ export class ListItem
585
585
< div
586
586
class = { {
587
587
[ CSS . nestedContainer ] : true ,
588
- [ CSS . nestedContainerHidden ] : this . openable && ! this . open ,
588
+ [ CSS . nestedContainerOpen ] : this . openable && this . open ,
589
589
} }
590
590
>
591
591
< slot
@@ -701,7 +701,7 @@ export class ListItem
701
701
</ tr >
702
702
{ this . renderContentBottom ( ) }
703
703
</ div >
704
- < div class = { CSS . indent } > { this . renderDefaultContainer ( ) } </ div >
704
+ { this . renderDefaultContainer ( ) }
705
705
</ InteractiveContainer >
706
706
</ Host >
707
707
) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ export const CSS = {
2
2
wrapper : "wrapper" ,
3
3
wrapperBordered : "wrapper--bordered" ,
4
4
container : "container" ,
5
- indent : "indent" ,
6
5
containerHover : "container--hover" ,
7
6
containerBorder : "container--border" ,
8
7
containerBorderSelected : "container--border-selected" ,
@@ -11,7 +10,7 @@ export const CSS = {
11
10
contentContainerSelectable : "content-container--selectable" ,
12
11
contentContainerHasCenterContent : "content-container--has-center-content" ,
13
12
nestedContainer : "nested-container" ,
14
- nestedContainerHidden : "nested-container--hidden " ,
13
+ nestedContainerOpen : "nested-container--open " ,
15
14
content : "content" ,
16
15
customContent : "custom-content" ,
17
16
actionsStart : "actions-start" ,
You can’t perform that action at this time.
0 commit comments