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 7272 pointer-events : none ;
7373 }
7474
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+
7586 @include content .styles ;
7687 @include label .styles ;
7788 @include supporting-text .styles ;
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ export class Field extends LitElement {
132132 return html `
133133 < div class ="field ${ classMap ( classes ) } ">
134134 < div class ="container-overflow ">
135- ${ this . renderBackground ?.( ) } ${ this . renderIndicator ?.( ) } ${ outline }
135+ ${ this . renderBackground ?.( ) }
136+ < slot name ="container "> </ slot >
137+ ${ this . renderStateLayer ?.( ) } ${ this . renderIndicator ?.( ) } ${ outline }
136138 < div class ="container ">
137139 < div class ="start ">
138140 < slot name ="start "> </ slot >
@@ -181,6 +183,7 @@ export class Field extends LitElement {
181183 }
182184
183185 protected renderBackground ?( ) : TemplateResult ;
186+ protected renderStateLayer ?( ) : TemplateResult ;
184187 protected renderIndicator ?( ) : TemplateResult ;
185188 protected renderOutline ?( floatingLabel : unknown ) : TemplateResult ;
186189
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ import {Field} from './field.js';
1313 */
1414export class FilledField extends Field {
1515 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 > ` ;
2021 }
2122
2223 protected override renderIndicator ( ) {
Original file line number Diff line number Diff line change 4444 resize : inherit ;
4545 }
4646
47+ slot [name = ' container' ] {
48+ border-radius : inherit ;
49+ }
50+
4751 @include icon .styles ;
4852 @include input .styles ;
4953}
Original file line number Diff line number Diff line change @@ -569,6 +569,7 @@ export abstract class TextField extends textFieldBaseClass {
569569 ${ this . renderInputOrTextarea ( ) }
570570 ${ this . renderTrailingIcon ( ) }
571571 < div id ="description " slot ="aria-describedby "> </ div >
572+ < slot name ="container " slot ="container "> </ slot >
572573 </ ${ this . fieldTag } > ` ;
573574 }
574575
You can’t perform that action at this time.
0 commit comments