Skip to content

Commit

Permalink
feat(field): add container slot to textfield and field
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 673060991
  • Loading branch information
material-web-copybara authored and copybara-github committed Sep 10, 2024
1 parent a9ee4f5 commit b515dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions field/internal/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class Field extends LitElement {
return html`
<div class="field ${classMap(classes)}">
<div class="container-overflow">
<slot name="container"></slot>
${this.renderBackground?.()} ${this.renderIndicator?.()} ${outline}
<div class="container">
<div class="start">
Expand Down
1 change: 1 addition & 0 deletions textfield/internal/text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ export abstract class TextField extends textFieldBaseClass {
${this.renderInputOrTextarea()}
${this.renderTrailingIcon()}
<div id="description" slot="aria-describedby"></div>
<slot name="container" slot="container"></slot>
</${this.fieldTag}>`;
}

Expand Down

0 comments on commit b515dcd

Please sign in to comment.