From e39809969f5ef14b997bc308b2d6553722ea0a75 Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Mon, 24 Apr 2023 13:37:15 -0700 Subject: [PATCH] fix(button)!: remove label property PiperOrigin-RevId: 526741279 --- button/lib/button.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/button/lib/button.ts b/button/lib/button.ts index 774d841554..befb0c356b 100644 --- a/button/lib/button.ts +++ b/button/lib/button.ts @@ -55,14 +55,6 @@ export abstract class Button extends LitElement { */ @property({type: Boolean, attribute: 'trailingicon'}) trailingIcon = false; - // TODO(b/272598771): remove label property - /** - * The button's visible label. - * - * @deprecated Set text as content of the button instead. - */ - @property() label = ''; - /** * Whether to display the icon or not. */ @@ -179,9 +171,7 @@ export abstract class Button extends LitElement { } protected renderLabel(): TemplateResult { - // TODO(b/272598771): remove the ternary when label property is removed - return html`${ - this.label ? this.label : html``}`; + return html``; } protected renderLeadingIcon(): TemplateResult|string {