@@ -26,7 +26,9 @@ governing permissions and limitations under the License.
26
26
}
27
27
28
28
.spectrum-FieldButton {
29
- border-color : var (--spectrum-textfield-border-color-key-focus );
29
+ & : before {
30
+ border-color : var (--spectrum-textfield-border-color-key-focus );
31
+ }
30
32
}
31
33
}
32
34
}
@@ -116,7 +118,9 @@ governing permissions and limitations under the License.
116
118
& : active ,
117
119
& .is-selected ,
118
120
& .spectrum-FieldButton--invalid {
119
- border-color : var (--spectrum-textfield-quiet-border-color );
121
+ & : before {
122
+ border-color : var (--spectrum-textfield-quiet-border-color );
123
+ }
120
124
}
121
125
122
126
& : disabled ,
@@ -127,7 +131,9 @@ governing permissions and limitations under the License.
127
131
128
132
& : hover : not (.spectrum-InputGroup--invalid ): not (.is-focused ): not (.is-disabled ) {
129
133
.spectrum-FieldButton {
130
- border-color : var (--spectrum-textfield-quiet-border-color-hover );
134
+ & : before {
135
+ border-color : var (--spectrum-textfield-quiet-border-color-hover );
136
+ }
131
137
}
132
138
}
133
139
@@ -139,14 +145,14 @@ governing permissions and limitations under the License.
139
145
}
140
146
141
147
& : hover {
142
- .spectrum-FieldButton ,
148
+ .spectrum-FieldButton : before ,
143
149
.spectrum-InputGroup-input {
144
150
border-color : var (--spectrum-textfield-border-color-error-hover );
145
151
}
146
152
}
147
153
148
154
& : active {
149
- .spectrum-FieldButton ,
155
+ .spectrum-FieldButton : before ,
150
156
.spectrum-InputGroup-input {
151
157
border-color : var (--spectrum-textfield-border-color-error-down );
152
158
}
@@ -202,12 +208,16 @@ governing permissions and limitations under the License.
202
208
/* Focus ring: When one of the inputs or the button has keyboard focus, render the focus ring border around the entire input group by styling an adjacent descendant element. */
203
209
& : focus-ring {
204
210
.spectrum-FieldButton {
205
- border-color : var (--spectrum-dropdown-border-color-key-focus );
211
+ & : before {
212
+ border-color : var (--spectrum-dropdown-border-color-key-focus );
213
+ }
206
214
box-shadow : 0 0 0 1px var (--spectrum-dropdown-border-color-key-focus );
207
215
}
208
216
}
209
217
.spectrum-FieldButton {
210
- border-color : var (--spectrum-dropdown-border-color-error );
218
+ & : before {
219
+ border-color : var (--spectrum-dropdown-border-color-error );
220
+ }
211
221
& .spectrum-FieldButton--invalid {
212
222
& : focus-ring {
213
223
border-color : var (--spectrum-dropdown-border-color-key-focus );
@@ -223,7 +233,9 @@ governing permissions and limitations under the License.
223
233
& .spectrum-InputGroup--invalid {
224
234
.spectrum-FieldButton {
225
235
box-shadow : none;
226
- border-color : var (--spectrum-dropdown-border-color-key-focus );
236
+ & : before {
237
+ border-color : var (--spectrum-dropdown-border-color-key-focus );
238
+ }
227
239
& .spectrum-FieldButton--invalid {
228
240
& : focus-ring {
229
241
box-shadow : 0 2px 0 0 var (--spectrum-dropdown-border-color-key-focus );
@@ -258,8 +270,9 @@ governing permissions and limitations under the License.
258
270
}
259
271
260
272
& .is-disabled : not (.spectrum-InputGroup--invalid ): not (.spectrum-InputGroup--quiet ) .spectrum-FieldButton {
261
- border-color : GrayText;
262
- border-width : 1px ;
273
+ & : before {
274
+ border-color : GrayText;
275
+ }
263
276
}
264
277
}
265
278
@@ -272,19 +285,25 @@ governing permissions and limitations under the License.
272
285
.spectrum-FieldButton {
273
286
& : disabled ,
274
287
& : disabled : hover {
275
- border-color : var (--spectrum-textfield-quiet-border-color );
288
+ & : before {
289
+ border-color : var (--spectrum-textfield-quiet-border-color );
290
+ }
276
291
}
277
292
}
278
293
}
279
294
& .is-disabled {
280
295
.spectrum-FieldButton {
281
- border-color : GrayText;
296
+ & : before {
297
+ border-color : GrayText;
298
+ }
282
299
}
283
300
}
284
301
}
285
302
.spectrum-InputGroup--invalid {
286
303
.spectrum-FieldButton {
287
- border-color : Highlight;
304
+ & : before {
305
+ border-color : Highlight;
306
+ }
288
307
}
289
308
& .is-disabled : not (.spectrum-InputGroup--quiet ) .spectrum-InputGroup-input {
290
309
border-color : GrayText;
@@ -294,11 +313,15 @@ governing permissions and limitations under the License.
294
313
border-color : GrayText;
295
314
}
296
315
& .spectrum-InputGroup--quiet .spectrum-FieldButton {
297
- border-color : GrayText;
316
+ & : before {
317
+ border-color : GrayText;
318
+ }
298
319
}
299
320
}
300
321
& .is-disabled : not (.spectrum-InputGroup--quiet ) .spectrum-FieldButton {
301
- border-color : GrayText;
322
+ & : before {
323
+ border-color : GrayText;
324
+ }
302
325
}
303
326
}
304
327
0 commit comments