File tree Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 72
72
pointer-events : none ;
73
73
}
74
74
75
+ slot [name = ' container' ] {
76
+ border-radius : inherit ;
77
+ }
78
+
79
+ slot [name = ' container' ]::slotted (* ) {
80
+ border-radius : inherit ;
81
+ inset : 0 ;
82
+ pointer-events : none ;
83
+ position : absolute ;
84
+ }
85
+
75
86
@include content .styles ;
76
87
@include label .styles ;
77
88
@include supporting-text .styles ;
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ export class Field extends LitElement {
132
132
return html `
133
133
< div class ="field ${ classMap ( classes ) } ">
134
134
< div class ="container-overflow ">
135
- ${ this . renderBackground ?.( ) } ${ this . renderIndicator ?.( ) } ${ outline }
135
+ ${ this . renderBackground ?.( ) }
136
+ < slot name ="container "> </ slot >
137
+ ${ this . renderStateLayer ?.( ) } ${ this . renderIndicator ?.( ) } ${ outline }
136
138
< div class ="container ">
137
139
< div class ="start ">
138
140
< slot name ="start "> </ slot >
@@ -181,6 +183,7 @@ export class Field extends LitElement {
181
183
}
182
184
183
185
protected renderBackground ?( ) : TemplateResult ;
186
+ protected renderStateLayer ?( ) : TemplateResult ;
184
187
protected renderIndicator ?( ) : TemplateResult ;
185
188
protected renderOutline ?( floatingLabel : unknown ) : TemplateResult ;
186
189
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ import {Field} from './field.js';
13
13
*/
14
14
export class FilledField extends Field {
15
15
protected override renderBackground ( ) {
16
- return html `
17
- < div class ="background "> </ div >
18
- < div class ="state-layer "> </ div >
19
- ` ;
16
+ return html ` < div class ="background "> </ div > ` ;
17
+ }
18
+
19
+ protected override renderStateLayer ( ) {
20
+ return html ` < div class ="state-layer "> </ div > ` ;
20
21
}
21
22
22
23
protected override renderIndicator ( ) {
Original file line number Diff line number Diff line change 44
44
resize : inherit ;
45
45
}
46
46
47
+ slot [name = ' container' ] {
48
+ border-radius : inherit ;
49
+ }
50
+
47
51
@include icon .styles ;
48
52
@include input .styles ;
49
53
}
Original file line number Diff line number Diff line change @@ -569,6 +569,7 @@ export abstract class TextField extends textFieldBaseClass {
569
569
${ this . renderInputOrTextarea ( ) }
570
570
${ this . renderTrailingIcon ( ) }
571
571
< div id ="description " slot ="aria-describedby "> </ div >
572
+ < slot name ="container " slot ="container "> </ slot >
572
573
</ ${ this . fieldTag } > ` ;
573
574
}
574
575
You can’t perform that action at this time.
0 commit comments