From 889bb60c696038b9c42847c821b42875b6273aeb Mon Sep 17 00:00:00 2001 From: tschug Date: Tue, 8 Oct 2024 00:22:38 -0400 Subject: [PATCH] Resolved utility icon colors, hover text colors, and removed forced uppercase --- .../main/default/lwc/indicatorBundle/indicatorBundle.css | 4 ++++ .../main/default/lwc/indicatorBundle/indicatorBundle.js | 8 ++++---- .../lwc/indicatorBundleItem/indicatorBundleItem.css | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/force-app/main/default/lwc/indicatorBundle/indicatorBundle.css b/force-app/main/default/lwc/indicatorBundle/indicatorBundle.css index a95f064..8583fe4 100644 --- a/force-app/main/default/lwc/indicatorBundle/indicatorBundle.css +++ b/force-app/main/default/lwc/indicatorBundle/indicatorBundle.css @@ -1,4 +1,8 @@ .cardIcon { --slds-c-icon-color-foreground: var(--foregroundColor); --slds-c-icon-color-background: var(--backgroundColor); + --slds-c-icon-color-foreground-default: var(--foregroundColor); + --slds-c-avatar-initials-text-color-hover: var(--foregroundColor); + --slds-c-avatar-text-color-hover: var(--foregroundColor); + --slds-c-avatar-text-color: var(--foregroundColor); } \ No newline at end of file diff --git a/force-app/main/default/lwc/indicatorBundle/indicatorBundle.js b/force-app/main/default/lwc/indicatorBundle/indicatorBundle.js index 2a463f7..4154d89 100644 --- a/force-app/main/default/lwc/indicatorBundle/indicatorBundle.js +++ b/force-app/main/default/lwc/indicatorBundle/indicatorBundle.js @@ -343,21 +343,21 @@ export default class IndicatorBundle extends LightningElement { //If no Icon Text is entered if the field is a Boolean then show the icon otherwise show the field value ...dataValue || dataValue === 0 ? { ...matchedExtension ? { - fTextShown: matchedExtension.TextValue ? matchedExtension.TextValue.toUpperCase().substring(0,3) : '' + fTextShown: matchedExtension.TextValue ? matchedExtension.TextValue.substring(0,3) : '' } : { ...dataValue && item.TextValue ? { - fTextShown : item.TextValue.toUpperCase().substring(0,3) + fTextShown : item.TextValue.substring(0,3) } : { ...item.EmptyStaticBehavior === 'Use Icon Only' ? { fTextShown : '' } : { - fTextShown : typeof(dataValue) === 'boolean' ? '' : String(dataValue).toUpperCase().substring(0,3) + fTextShown : typeof(dataValue) === 'boolean' ? '' : String(dataValue).substring(0,3) } } } } : { ...(dataValue === false || dataValue === null || dataValue === '') && item.DisplayFalse ? { - fTextShown : item.FalseTextValue ? item.FalseTextValue.toUpperCase().substring(0,3) : '' + fTextShown : item.FalseTextValue ? item.FalseTextValue.substring(0,3) : '' } : { fTextShown : '' } diff --git a/force-app/main/default/lwc/indicatorBundleItem/indicatorBundleItem.css b/force-app/main/default/lwc/indicatorBundleItem/indicatorBundleItem.css index 401ae97..45a9f21 100644 --- a/force-app/main/default/lwc/indicatorBundleItem/indicatorBundleItem.css +++ b/force-app/main/default/lwc/indicatorBundleItem/indicatorBundleItem.css @@ -5,5 +5,8 @@ .indicatorIcon { --slds-c-icon-color-foreground: var(--foregroundColor); --slds-c-icon-color-background: var(--backgroundColor); + --slds-c-icon-color-foreground-default: var(--foregroundColor); + --slds-c-avatar-initials-text-color-hover: var(--foregroundColor); + --slds-c-avatar-text-color-hover: var(--foregroundColor); --slds-c-avatar-text-color: var(--foregroundColor); } \ No newline at end of file