@firestitch/style 18.0.68 → 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 +12 -6
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
|
|
|
@@ -106,11 +112,11 @@
|
|
|
106
112
|
|
|
107
113
|
// Lineless hides the border only at rest — hovering or focusing falls
|
|
108
114
|
// through to the native Material hover/focus styling. Adding
|
|
109
|
-
// form-field-lineless-
|
|
115
|
+
// form-field-lineless-always suspends the hiding so the line stays
|
|
110
116
|
// visible even without focus — toggle it on fields whose overlay panels
|
|
111
117
|
// steal focus mid-interaction (autocomplete chips in a drawer) so the
|
|
112
118
|
// line doesn't drop out while the panel is open.
|
|
113
|
-
.form-field-lineless:not(.mat-focused):not(.form-field-lineless-
|
|
119
|
+
.form-field-lineless:not(.mat-focused):not(.form-field-lineless-always):not(:hover) {
|
|
114
120
|
// !important: Material injects its component styles after this sheet,
|
|
115
121
|
// and its invalid/disabled border selectors out-rank anything
|
|
116
122
|
// reasonable here. At rest the lineless contract — no line — must
|