Skip to content

Commit

Permalink
Changes to CSS to be more consistent wiht standard CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
JodieM committed Sep 1, 2024
1 parent f7ab5fa commit 59a92d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions force-app/main/default/lwc/indicatorBundle/indicatorBundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ <h2 class="slds-card__header-title">
</div>
</template>
</template>
<template lwc:else>
<template lwc:else>
<div class="slds-card__body slds-card__body_inner">
<template lwc:if={showTitle}>
<div class={sectionHeaderClass}>
<h3 slot="title" class="label slds-section__title slds-truncate slds-p-top_xx-small slds-p-bottom_xx-small slds-theme_shade">
<span class="slds-var-m-left_medium" title="Section Title">{card.title}</span>
<div class="section-layout-container slds-section slds-is-open slds-button slds-section__title-action slds-theme_shade">
<h3 slot="title" class="slds-truncate slds-p-around_xx-small">
<span class="slds-text-heading_small" title="Section Title">{card.title}</span>
</h3>
</div>
</template>
</template>
</div>
</template>
<div class="slds-grid grid-wrap slds-card__body">
<div class={sectionBodyClass}>
<div class="slds-col slds-grid slds-grid_vertical">
<div class="slds-col">
<template lwc:if={showDescription}>
Expand Down
6 changes: 3 additions & 3 deletions force-app/main/default/lwc/indicatorBundle/indicatorBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export default class IndicatorBundle extends LightningElement {
}

if(this.flexipageRegionWidth == 'SMALL'){
this.sectionHeaderClass = 'slds-section slds-is-open slds-var-p-horizontal_medium';
this.sectionBodyClass = 'slds-grid grid-wrap slds-card__body';
} else {
this.card.iconClass = 'slds-var-m-right_xx-small ';
this.sectionHeaderClass = 'slds-section slds-is-open';
this.card.iconClass = 'slds-media__figure slds-var-m-right_xx-small';
this.sectionBodyClass = 'slds-grid grid-wrap slds-card__body slds-card__body_inner';
}

// console.log('Card Data');
Expand Down

0 comments on commit 59a92d1

Please sign in to comment.