PEG_LIST icon indicating copy to clipboard operation
PEG_LIST copied to clipboard

sfpegKpiListCmp - Patching component display after regression from winter 25 release

Open satveerbhantoo opened this issue 4 months ago • 6 comments

Summary

With the Winter ’25 release a regression was observed on sfpegKpiListCmp.
The KPI numbers are no longer displayed on a single line; instead each character wraps to the next line, breaking the layout.
error ss

Poissible Cause

The Winter ’25 release introduces additional SLDS classes.

See screenshots below and links for reference:
inspector readonly image https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_components.htm&release=258&type=5

One of these additional classes adds a flex-basis attribute, which forces the content to wrap and breaks the component’s alignment.

Proposed Fix / Patch

To patch this currently, we can add the slds-media__body class to the <lightning-output-field> elements.
This negates the inherited flex-basis attribute with minimal additional CSS and restores the correct display of the component, as shown below:

media fix

satveerbhantoo avatar Sep 12 '25 06:09 satveerbhantoo

Hello @pegros,

Please review this patch for the sfpegKpiListCmp. This issue was noticed in out client's organisation with winter 25 release. I included our analysis and proposed patch.

Regards, Satveer

satveerbhantoo avatar Sep 12 '25 06:09 satveerbhantoo

Thank you Satveer, a very good quick fix.

nbendjamaa avatar Sep 12 '25 08:09 nbendjamaa

@pegros can you validate and merge this fix please, it's for the current Winter 26 release and we want stay synchronized with your last version

nbendjamaa avatar Sep 15 '25 09:09 nbendjamaa

Hello @nbendjamaa and @satveerbhantoo , I had a look at the current KPI List component version on a Winter 26 sandbox and I do not see any issue.

With SLDS v1 theme, I get this Capture d’écran 2025-09-18 à 14 06 25

With SLDS v2 theme, I get this Capture d’écran 2025-09-18 à 14 06 52

There is definitively a small issue with field theming (size and bold mode) but not with alignment. I shall fix this later but see no need to merge your PR for now.

pegros avatar Sep 18 '25 12:09 pegros

FYI @scolladon

pegros avatar Sep 18 '25 12:09 pegros

@pegros Do you know if there has been an update on salesforce's side on this bug ? Currently, as reported earlier, the .slds-form-element_read-only does not appear on the lightning-output-field automatically anymore.

image

Kind regards, Satveer cc : @scolladon @nbendjamaa

satveerbhantoo avatar Sep 23 '25 06:09 satveerbhantoo