Skip to content

Commit

Permalink
feat(list): Added soy template annotations for image classes slot
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 464490814
  • Loading branch information
material-web-copybara authored and copybara-github committed Aug 1, 2022
1 parent 62092b7 commit c277252
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion list/lib/avatar/list-item-avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export class ListItemAvatar extends LitElement {
@property({type: String, reflect: true}) avatar = '';
@property({type: String, reflect: true}) altText?: string;

/** @soyTemplate */
/**
* @soyTemplate
* @soyClasses imageClasses: .md3-list-item__avatar
*/
override render(): TemplateResult {
return html`
<img src="${this.avatar}" alt="${ifDefined(this.altText)}"
Expand Down

0 comments on commit c277252

Please sign in to comment.