@firestitch/style 18.0.67 → 18.0.69
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 +14 -8
package/package.json
CHANGED
package/styles/_form-field.scss
CHANGED
|
@@ -104,17 +104,23 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
// Lineless hides the border only at rest — hovering or focusing falls
|
|
108
|
+
// through to the native Material hover/focus styling. Adding
|
|
109
|
+
// form-field-lineless-always suspends the hiding so the line stays
|
|
110
|
+
// visible even without focus — toggle it on fields whose overlay panels
|
|
111
|
+
// steal focus mid-interaction (autocomplete chips in a drawer) so the
|
|
112
|
+
// line doesn't drop out while the panel is open.
|
|
113
|
+
.form-field-lineless:not(.mat-focused):not(.form-field-lineless-always):not(:hover) {
|
|
108
114
|
// !important: Material injects its component styles after this sheet,
|
|
109
|
-
// and its
|
|
110
|
-
// here.
|
|
111
|
-
//
|
|
115
|
+
// and its invalid/disabled border selectors out-rank anything
|
|
116
|
+
// reasonable here. At rest the lineless contract — no line — must
|
|
117
|
+
// always win.
|
|
112
118
|
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
113
119
|
border-color: transparent !important;
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
// Fill renders its outline-style border on the wrapper (see the fill
|
|
117
|
-
// block above); hide it and the container tint
|
|
123
|
+
// block above); hide it and the container tint while at rest
|
|
118
124
|
&.mat-form-field-appearance-fill {
|
|
119
125
|
--mdc-filled-text-field-container-color: transparent;
|
|
120
126
|
--mat-form-field-filled-container-color: transparent;
|
|
@@ -123,9 +129,9 @@
|
|
|
123
129
|
border-color: transparent !important;
|
|
124
130
|
}
|
|
125
131
|
}
|
|
132
|
+
}
|
|
126
133
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
134
|
+
.form-field-lineless input {
|
|
135
|
+
text-overflow: ellipsis;
|
|
130
136
|
}
|
|
131
137
|
}
|