File tree 3 files changed +15
-2
lines changed
force-app/components/relatedList/lwc/tagRelatedList
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 5
5
padding : 0.25rem 0.5rem ;
6
6
}
7
7
8
+ .chevronIcon {
9
+ /* fill: #706e6b; Salesforce grey */
10
+ align-self : center;
11
+ }
12
+
8
13
.headerLeft {
9
14
display : flex;
10
15
align-items : center;
17
22
}
18
23
19
24
.headerTitle {
20
- margin : 0 0.5rem ;
25
+ /* margin: 0 0.5rem; */
21
26
line-height : 1.5rem ;
22
27
}
23
28
Original file line number Diff line number Diff line change 7
7
< template if:true ={icon} >
8
8
< lightning-icon icon-name ={icon} size ="small " class ="headerIcon slds-m-right_x-small "> </ lightning-icon >
9
9
</ template >
10
+ < lightning-icon
11
+ icon-name ={chevronIcon}
12
+ size ="x-small "
13
+ class ="chevronIcon slds-m-right_xx-small ">
14
+ </ lightning-icon >
10
15
< h1 class ="headerTitle slds-text-heading_small "> {cardTitle}</ h1 >
11
- < span class ="headerToggle "> {toggleIcon}</ span >
12
16
</ div >
13
17
<!-- Right Group: New Record Button -->
14
18
< template if:true ={showNewRecordButton} >
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ export default class TagRelatedList extends NavigationMixin(LightningElement) {
76
76
this . isExpanded = ! this . isExpanded ;
77
77
}
78
78
79
+ get chevronIcon ( ) {
80
+ return this . isExpanded ? 'utility:chevrondown' : 'utility:chevronright' ;
81
+ }
82
+
79
83
// Handle row click event if clickableRows is enabled
80
84
handleRowClick ( event ) {
81
85
let recordIndex = event . currentTarget . dataset . value ;
You can’t perform that action at this time.
0 commit comments