Skip to content

Commit a00f9b7

Browse files
committed
Fix border-color on focus and background of text fields labels
1 parent 18ea52f commit a00f9b7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

projects/pastanaga-angular/src/styles/components/_textfields.scss

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
}
3535
}
3636

37+
&:focus,
38+
&:active,
39+
&.pa-focus {
40+
border-color: $border-color-field-active;
41+
}
3742
&.pa-disabled {
3843
border-color: $border-color-field-disabled;
3944
}
@@ -60,13 +65,8 @@
6065
}
6166
// Definition specific for text field labels
6267
.pa-field-label {
63-
background: linear-gradient(
64-
180deg,
65-
rgb(255, 255, 255) 0%,
66-
rgb(255, 255, 255) 56%,
67-
rgba(255, 255, 255, 0) 0%,
68-
rgba(255, 255, 255, 0) 100%
69-
);
68+
background: $color-background-field-label;
69+
border-radius: $border-radius-field;
7070
color: $color-text-field-label-regular;
7171
left: $padding-field-control-left;
7272
max-width: calc(100% - #{$padding-field-control-left * 2});

projects/pastanaga-angular/src/styles/theme/_textfield.tokens.scss

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ $color-background-field-regular: none !default;
3535
$color-background-field-autofilled: $color-autofilled-background !default;
3636
$color-background-field-autofilled-transparent: $color-autofilled-background !default;
3737
$color-background-field-error: none !default;
38+
$color-background-field-label: $color-light-stronger !default;
3839

3940
//=====================================
4041
// BORDERS

0 commit comments

Comments
 (0)