diff --git a/button/lib/_shared.scss b/button/lib/_shared.scss index 2a8709dc9b..2e14619a5f 100644 --- a/button/lib/_shared.scss +++ b/button/lib/_shared.scss @@ -15,6 +15,7 @@ @use '../../sass/color'; @use '../../sass/dom'; @use '../../sass/resolvers'; +@use '../../sass/shape'; @use '../../sass/typography'; // go/keep-sorted end @@ -43,12 +44,7 @@ @include focus-ring.theme( ( - shape: ( - var(--_container-shape-start-start), - var(--_container-shape-start-end), - var(--_container-shape-end-end), - var(--_container-shape-end-start), - ), + shape: shape.corners-to-shape-token('--_container-shape'), ) ); } diff --git a/button/lib/button.ts b/button/lib/button.ts index 44f9b1a33e..5e72fb16bb 100644 --- a/button/lib/button.ts +++ b/button/lib/button.ts @@ -50,8 +50,11 @@ export abstract class Button extends LitElement implements ButtonState { */ @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({type: String}) label = ''; @@ -160,7 +163,9 @@ export abstract class Button extends LitElement implements ButtonState { } protected renderLabel(): TemplateResult { - return html`${this.label}`; + // TODO(b/272598771): remove the ternary when label property is removed + return html`${ + this.label ? this.label : html``}`; } protected renderLeadingIcon(): TemplateResult|string {