Skip to content

Commit 85d6768

Browse files
committed
changed icon for Accordion in custom related List
1 parent 135a61b commit 85d6768

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

force-app/components/relatedList/lwc/tagRelatedList/tagRelatedList.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
padding: 0.25rem 0.5rem;
66
}
77

8+
.chevronIcon {
9+
/* fill: #706e6b; Salesforce grey */
10+
align-self: center;
11+
}
12+
813
.headerLeft {
914
display: flex;
1015
align-items: center;
@@ -17,7 +22,7 @@
1722
}
1823

1924
.headerTitle {
20-
margin: 0 0.5rem;
25+
/* margin: 0 0.5rem; */
2126
line-height: 1.5rem;
2227
}
2328

force-app/components/relatedList/lwc/tagRelatedList/tagRelatedList.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
<template if:true={icon}>
88
<lightning-icon icon-name={icon} size="small" class="headerIcon slds-m-right_x-small"></lightning-icon>
99
</template>
10+
<lightning-icon
11+
icon-name={chevronIcon}
12+
size="x-small"
13+
class="chevronIcon slds-m-right_xx-small">
14+
</lightning-icon>
1015
<h1 class="headerTitle slds-text-heading_small">{cardTitle}</h1>
11-
<span class="headerToggle">{toggleIcon}</span>
1216
</div>
1317
<!-- Right Group: New Record Button -->
1418
<template if:true={showNewRecordButton}>

force-app/components/relatedList/lwc/tagRelatedList/tagRelatedList.js

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export default class TagRelatedList extends NavigationMixin(LightningElement) {
7676
this.isExpanded = !this.isExpanded;
7777
}
7878

79+
get chevronIcon() {
80+
return this.isExpanded ? 'utility:chevrondown' : 'utility:chevronright';
81+
}
82+
7983
// Handle row click event if clickableRows is enabled
8084
handleRowClick(event) {
8185
let recordIndex = event.currentTarget.dataset.value;

0 commit comments

Comments
 (0)