@onemrvapublic/design-system-theme 20.7.0-develop.13 → 20.7.0-develop.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/overrides/_form-field.scss +18 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
@use 'sass:map';
|
|
3
|
+
@use '../utilities/palettes' as palettes;
|
|
3
4
|
|
|
4
5
|
@mixin defaultSubscriptElements() {
|
|
5
6
|
background-color: var(--mat-sys-error-container);
|
|
@@ -92,6 +93,22 @@
|
|
|
92
93
|
padding: var(--spacer);
|
|
93
94
|
//margin-bottom: var(--spacer);
|
|
94
95
|
|
|
96
|
+
&.force-warn {
|
|
97
|
+
$warn-40-color: map-get(palettes.$warn-palette, 40);
|
|
98
|
+
|
|
99
|
+
@include mat.form-field-overrides(
|
|
100
|
+
(
|
|
101
|
+
outlined-caret-color: $warn-40-color,
|
|
102
|
+
outlined-focus-outline-color: $warn-40-color,
|
|
103
|
+
outlined-focus-label-text-color: $warn-40-color,
|
|
104
|
+
outlined-hover-label-text-color: $warn-40-color,
|
|
105
|
+
outlined-hover-outline-color: $warn-40-color,
|
|
106
|
+
outlined-label-text-color: $warn-40-color,
|
|
107
|
+
outlined-outline-color: $warn-40-color,
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
95
112
|
.mat-mdc-form-field-subscript-wrapper {
|
|
96
113
|
@include formFieldSubscript(error);
|
|
97
114
|
@include formFieldSubscript(hint);
|
|
@@ -129,7 +146,7 @@
|
|
|
129
146
|
.mat-mdc-form-field-error-wrapper {
|
|
130
147
|
mat-error {
|
|
131
148
|
background-color: var(--mat-sys-primary-container);
|
|
132
|
-
border-bottom:
|
|
149
|
+
border-bottom: 1px solid var(--mat-sys-primary);
|
|
133
150
|
&:before {
|
|
134
151
|
content: '\e002';
|
|
135
152
|
}
|