diff --git a/textfield/filled-text-field.ts b/textfield/filled-text-field.ts index d471fef227..31c7721e06 100644 --- a/textfield/filled-text-field.ts +++ b/textfield/filled-text-field.ts @@ -33,7 +33,6 @@ export class MdFilledTextField extends FilledTextField { /** @soyTemplate */ protected override renderField(): TemplateResult { - // TODO(b/239690585): move start/end slots to renderFieldContent return html` - - ${this.renderLeadingIcon()} - + ${this.renderLeadingIcon()} ${this.renderFieldContent()} - - ${this.renderTrailingIcon()} - + ${this.renderTrailingIcon()} `; } diff --git a/textfield/lib/text-field.ts b/textfield/lib/text-field.ts index 9ccd2a760a..148754da10 100644 --- a/textfield/lib/text-field.ts +++ b/textfield/lib/text-field.ts @@ -175,19 +175,27 @@ export class TextField extends LitElement { return html`${prefix}${input}${suffix}`; } - /** @soyTemplate */ + /** + * @soyTemplate + * @slotName start + */ protected renderLeadingIcon(): TemplateResult { return html` - + `; } - /** @soyTemplate */ + /** + * @soyTemplate + * @slotName end + */ protected renderTrailingIcon(): TemplateResult { return html` - + `; diff --git a/textfield/outlined-text-field.ts b/textfield/outlined-text-field.ts index 7a6d920aae..c81d0715ba 100644 --- a/textfield/outlined-text-field.ts +++ b/textfield/outlined-text-field.ts @@ -33,7 +33,6 @@ export class MdOutlinedTextField extends OutlinedTextField { /** @soyTemplate */ protected override renderField(): TemplateResult { - // TODO(b/239690585): move start/end slots to renderFieldContent return html` - - ${this.renderLeadingIcon()} - + ${this.renderLeadingIcon()} ${this.renderFieldContent()} - - ${this.renderTrailingIcon()} - + ${this.renderTrailingIcon()} `; }