From 0195d405f7f35b0cb0449b083daa04c779b92855 Mon Sep 17 00:00:00 2001 From: Isoumyajit Date: Wed, 9 Sep 2026 00:39:18 +0530 Subject: [PATCH] AAE-48227 keep adf-label class on mat-labels to preserve downstream styling The mat-label refactor dropped the .adf-label class from several widget labels. That class is a public styling hook: consuming apps (e.g. hxp studio form editor) target it to set label font, line-height and sizing, so removing it silently changed label metrics and form field spacing downstream. Keep class="adf-label" on the mat-labels alongside the new data-automation-id hooks, and restore the SCSS selectors that had been renamed to work around the missing class. Unit tests already select labels via data-automation-id, so they are unaffected. Co-authored-by: Cursor --- .../src/lib/form/components/widgets/amount/amount.widget.html | 2 +- lib/core/src/lib/form/components/widgets/date/date.widget.html | 2 +- .../widgets/multiline-text/multiline-text.widget.html | 2 +- lib/core/src/lib/form/components/widgets/text/text.widget.html | 2 +- .../src/lib/form/components/form-cloud.component.scss | 3 +-- .../display-external-property.widget.html | 2 +- .../src/lib/form/widgets/dropdown/dropdown.widget.html | 2 +- .../form/widgets/functional-group/functional-group.widget.html | 2 +- .../src/lib/form/widgets/people/people.widget.html | 2 +- .../src/lib/form/widgets/typeahead/typeahead.widget.html | 2 +- .../task-list/components/start-task/start-task.component.scss | 2 +- 11 files changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/core/src/lib/form/components/widgets/amount/amount.widget.html b/lib/core/src/lib/form/components/widgets/amount/amount.widget.html index 8ff875f63d..627d450161 100644 --- a/lib/core/src/lib/form/components/widgets/amount/amount.widget.html +++ b/lib/core/src/lib/form/components/widgets/amount/amount.widget.html @@ -15,7 +15,7 @@ subscriptSizing="dynamic" [floatLabel]="placeholder ? 'always' : null" > - @if ( (field.name || field?.required) && !field.leftLabels) { {{field.name | translate }} } + @if ( (field.name || field?.required) && !field.leftLabels) { {{field.name | translate }} } @if(!enableDisplayBasedOnLocale) { {{ currency }}  } diff --git a/lib/core/src/lib/form/components/widgets/date/date.widget.html b/lib/core/src/lib/form/components/widgets/date/date.widget.html index 02a0c8fe02..cbfa180115 100644 --- a/lib/core/src/lib/form/components/widgets/date/date.widget.html +++ b/lib/core/src/lib/form/components/widgets/date/date.widget.html @@ -2,7 +2,7 @@ [class.adf-invalid]="dateInputControl.invalid && dateInputControl.touched" [class.adf-readonly]="field.readOnly"> - + {{ field.name | translate }} ({{ field.dateDisplayFormat }}) @if(field.name || field.required) { - {{ field.name | translate }} + {{ field.name | translate }} }