@firestitch/style 18.0.69 → 18.0.70
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/package.json +1 -1
- package/styles/_form-field.scss +10 -4
package/package.json
CHANGED
package/styles/_form-field.scss
CHANGED
|
@@ -66,11 +66,17 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// Outline's focused border is 2px
|
|
70
|
-
//
|
|
69
|
+
// Outline's focused border is 2px. Drawing it as a CSS outline with a
|
|
70
|
+
// matching negative offset lays the 2px band flush *inside* the wrapper's
|
|
71
|
+
// resting edge — outlines never occupy layout space, so the field keeps
|
|
72
|
+
// the exact same width, height and position focused or not, and nothing
|
|
73
|
+
// around it moves. The 1px border underneath is painted over by the
|
|
74
|
+
// outline; it stays set to the focus color so the corner arcs still read
|
|
75
|
+
// correctly if a browser rounds the outline radius differently.
|
|
71
76
|
&.mat-focused .mat-mdc-text-field-wrapper {
|
|
72
77
|
border-color: var(--mdc-outlined-text-field-focus-outline-color, var(--mat-form-field-outlined-focus-outline-color));
|
|
73
|
-
|
|
78
|
+
outline: 2px solid var(--mdc-outlined-text-field-focus-outline-color, var(--mat-form-field-outlined-focus-outline-color));
|
|
79
|
+
outline-offset: -2px;
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
&.mat-form-field-invalid {
|
|
@@ -84,7 +90,7 @@
|
|
|
84
90
|
|
|
85
91
|
&.mat-focused .mat-mdc-text-field-wrapper {
|
|
86
92
|
border-color: var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-form-field-outlined-error-focus-outline-color));
|
|
87
|
-
|
|
93
|
+
outline-color: var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-form-field-outlined-error-focus-outline-color));
|
|
88
94
|
}
|
|
89
95
|
}
|
|
90
96
|
|