This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Expand file tree Collapse file tree 2 files changed +13
-19
lines changed Original file line number Diff line number Diff line change 195
195
}
196
196
197
197
@mixin mdc-text-field-outlined-focused_ {
198
- .mdc-text-field__idle-outline {
199
- opacity : 0 ;
200
- }
201
-
202
- .mdc-text-field__outline {
203
- opacity : 1 ;
204
- }
205
-
206
198
.mdc-text-field__outline-path {
207
199
stroke-width : 2px ;
208
200
}
237
229
height : 56px ;
238
230
border : none ;
239
231
240
- // stylelint-disable plugin/selector-bem-pattern
241
-
242
232
.mdc-text-field__input {
243
233
display : flex ;
244
234
height : 30px ;
260
250
z-index : 2 ;
261
251
}
262
252
263
- .mdc-text-field__label--float-above ~ .mdc-text-field__idle-outline {
264
- opacity : 0 ;
265
- }
266
-
253
+ // stylelint-disable plugin/selector-bem-pattern
267
254
.mdc-text-field__input :hover ~ .mdc-text-field__idle-outline {
268
255
border : 1px solid ;
269
256
}
270
257
271
258
.mdc-text-field__icon :hover ~ .mdc-text-field__idle-outline {
272
259
border : 1px solid $mdc-text-field-outlined-hover-border ;
273
260
}
274
-
275
- .mdc-text-field__label--float-above ~ .mdc-text-field__outline {
276
- opacity : 1 ;
277
- }
278
-
279
261
// stylelint-enable plugin/selector-bem-pattern
280
262
}
281
263
Original file line number Diff line number Diff line change 255
255
.mdc-text-field--textarea.mdc-text-field--disabled {
256
256
@include mdc-text-field-textarea-disabled_ ;
257
257
}
258
+
259
+ // Never show the idle outline when the label is floating, otherwise the label
260
+ // will collide with the idle outline.
261
+ .mdc-text-field__label--float-above ~ .mdc-text-field__idle-outline {
262
+ opacity : 0 ;
263
+ }
264
+
265
+ // Show the outline when the label is floating, since the outline has a
266
+ // notch for the label to fit into.
267
+ .mdc-text-field__label--float-above ~ .mdc-text-field__outline {
268
+ opacity : 1 ;
269
+ }
You can’t perform that action at this time.
0 commit comments