File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,6 @@ export abstract class Button extends LitElement {
55
55
*/
56
56
@property ( { type : Boolean , attribute : 'trailingicon' } ) trailingIcon = false ;
57
57
58
- // TODO(b/272598771): remove label property
59
- /**
60
- * The button's visible label.
61
- *
62
- * @deprecated Set text as content of the button instead.
63
- */
64
- @property ( ) label = '' ;
65
-
66
58
/**
67
59
* Whether to display the icon or not.
68
60
*/
@@ -179,9 +171,7 @@ export abstract class Button extends LitElement {
179
171
}
180
172
181
173
protected renderLabel ( ) : TemplateResult {
182
- // TODO(b/272598771): remove the ternary when label property is removed
183
- return html `< span class ="md3-button__label "> ${
184
- this . label ? this . label : html `< slot > </ slot > ` } </ span > `;
174
+ return html `< span class ="md3-button__label "> < slot > </ slot > </ span > ` ;
185
175
}
186
176
187
177
protected renderLeadingIcon ( ) : TemplateResult | string {
You can’t perform that action at this time.
0 commit comments