Skip to content

Commit

Permalink
AAE-22783 Fix form elements label style (#9725)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoABastos authored and VitoAlbano committed Jun 24, 2024
1 parent d23862f commit ea3dd60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/core/src/lib/form/components/form-renderer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
}
}

.adf-container-widget__header-text,
.adf-label {
font-family: var(--theme-font-family);
color: var(--theme-primary-color);
}

.adf-field-list {
padding: 0;
list-style-type: none;
Expand Down Expand Up @@ -97,11 +91,16 @@
#{$mat-form-field} {
width: 100%;

#{$mat-text-field-focused} {
label {
color: var(--theme-primary-color);
}
}

label {
transform: scaleX(1);
transition: transform 150ms linear;
background-color: 300ms cubic-bezier(0.55, 0, 0.55, 0.2);
color: var(--theme-primary-color);
}

#{$mat-form-field-prefix} {
Expand Down
1 change: 1 addition & 0 deletions lib/core/src/lib/styles/_mat-selectors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ $mat-form-field-invalid: '.mat-form-field-invalid';
$mat-form-field-appearance-outline: '.mat-form-field-appearance-outline';
$mat-text-field-outlined: '.mdc-text-field--outlined';
$mat-text-field-outlined-thick: '.mdc-text-field--outlined-thick';
$mat-text-field-focused: '.mdc-text-field--focused';
$mat-dialog-actions: '.mat-mdc-dialog-actions';
$mat-dialog-container: '.mdc-dialog__container';
$mat-dialog-content: '.mat-mdc-dialog-content';
Expand Down

0 comments on commit ea3dd60

Please sign in to comment.