@@ -44,7 +44,14 @@ $fs: rem(16px) !default;
4444 }
4545}
4646
47- input :placeholder-shown + [part = ' notch' ] [part = ' label' ],
47+ :is(
48+ input :placeholder-shown ,
49+ input [type = ' date' ],
50+ input [type = ' time' ],
51+ input [type = ' datetime-local' ],
52+ input [type = ' week' ],
53+ input [type = ' month' ]
54+ ) + [part = ' notch' ] [part = ' label' ],
4855[part ~= ' filled' ] + [part = ' notch' ] [part = ' label' ] {
4956 @include type-style (' caption' );
5057 @extend %label ;
@@ -159,7 +166,14 @@ input:placeholder-shown + [part='notch'] [part='label'],
159166
160167:host ([readonly ]:not ([outlined ]):focus-within ) {
161168 :not ([part ~= ' filled' ]) {
162- input :has (:not (:placeholder-shown )) + [part = ' notch' ] [part = ' label' ] {
169+ :is (
170+ input[type= ' date' ] ,
171+ input[type= ' time' ] ,
172+ input[type= ' datetime-local' ] ,
173+ input[type= ' week' ] ,
174+ input[type= ' month' ]
175+ ) + [part=' notch' ] [part=' label' ],
176+ input:not (:placeholder-shown )+ [part=' notch' ] [part=' label' ] {
163177 translate : 0 ;
164178 font-size : initial ;
165179 }
@@ -210,7 +224,14 @@ input:placeholder-shown + [part='notch'] [part='label'],
210224 padding-bottom : rem (6px );
211225 }
212226
213- input :placeholder- shown + [part=' notch' ] [part=' label' ],
227+ :is (
228+ input:placeholder-shown ,
229+ input[type= ' date' ] ,
230+ input[type= ' time' ] ,
231+ input[type= ' datetime-local' ] ,
232+ input[type= ' week' ] ,
233+ input[type= ' month' ]
234+ ) + [part=' notch' ] [part=' label' ],
214235 [part~=' filled' ] + [part=' notch' ] [part=' label' ] {
215236 translate : 0 -73% ;
216237 }
@@ -229,14 +250,12 @@ input:placeholder-shown + [part='notch'] [part='label'],
229250 }
230251}
231252
232- :host (
233- :not (
234- [outlined ],
235- [type = ' search' ],
236- [aria-haspopup = ' dialog' ],
237- [role = ' combobox' ]
238- )[readonly ]:hover
239- ) {
253+ :host (:not (
254+ [outlined ],
255+ [type = ' search' ],
256+ [aria-haspopup = ' dialog' ],
257+ [role = ' combobox' ]
258+ )[readonly ]:hover ) {
240259 [part ~= ' container' ] {
241260 background : var-get ($theme , ' box-background-focus' );
242261 border-bottom-color : var-get ($theme , ' idle-bottom-line-color' );
@@ -450,6 +469,13 @@ input:placeholder-shown + [part='notch'] [part='label'],
450469 }
451470 }
452471
472+ :is (
473+ input[type= ' date' ] ,
474+ input[type= ' time' ] ,
475+ input[type= ' datetime-local' ] ,
476+ input[type= ' week' ] ,
477+ input[type= ' month' ]
478+ ) + [part=' notch' ],
453479 [part~=' filled' ] + [part=' notch' ] {
454480 @extend %floated- styles;
455481
@@ -480,12 +506,10 @@ input:placeholder-shown + [part='notch'] [part='label'],
480506 }
481507}
482508
483- :host (
484- :not (
485- [aria-haspopup = ' dialog' ],
486- [role = ' combobox' ]
487- )[outlined ][readonly ]:focus-within
488- ) {
509+ :host (:not (
510+ [aria-haspopup = ' dialog' ],
511+ [role = ' combobox' ]
512+ )[outlined ][readonly ]:focus-within ) {
489513 [part = ' notch' ],
490514 [part = ' start' ],
491515 [part = ' end' ],
@@ -502,13 +526,13 @@ input:placeholder-shown + [part='notch'] [part='label'],
502526 :not (:state(ig-invalid ), [type = ' search' ])[readonly ][outlined ]:focus-within
503527) {
504528 :not ([part ~= ' filled' ]) {
505- input :has ( : not (:placeholder-shown ) ) + [part = ' notch' ] [part = ' label' ] {
529+ input :not (:placeholder-shown ) + [part = ' notch' ] [part = ' label' ] {
506530 translate : 0 ;
507531 font-size : initial ;
508532 align-self : center ;
509533 }
510534
511- input :has ( : not (:placeholder-shown ) ) + [part = ' notch' ] {
535+ input :not (:placeholder-shown ) + [part = ' notch' ] {
512536 border : {
513537 width : $active-border-width ;
514538 color : var-get ($theme , ' focused-border-color' );
@@ -531,6 +555,22 @@ input:placeholder-shown + [part='notch'] [part='label'],
531555 }
532556}
533557
558+ :host ([outlined ]:is(
559+ [type = ' date' ],
560+ [type = ' time' ],
561+ [type = ' datetime-local' ],
562+ [type = ' week' ],
563+ [type = ' month' ]
564+ )) {
565+ [part = ' label' ] {
566+ transition : none ;
567+ }
568+
569+ [part = ' notch' ] {
570+ border-block-start-color : transparent !important ;
571+ }
572+ }
573+
534574:host (:not ([type = ' search' ])[outlined ]:focus-within ) {
535575 [part = ' start' ] {
536576 border : {
0 commit comments