Skip to content

Commit 4181724

Browse files
allan-chencopybara-github
authored andcommitted
fix(button): correctly render aria-label
PiperOrigin-RevId: 401386633
1 parent 9313380 commit 4181724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/button/lib/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export abstract class Button extends LitElement {
8181
id="button"
8282
class="md3-button ${classMap(this.getRenderClasses())}"
8383
?disabled="${this.disabled}"
84-
aria-label="${this.ariaLabel || this.label}"
84+
aria-label="${ifDefined(this.ariaLabel)}"
8585
aria-haspopup="${ifDefined(this.ariaHasPopup)}"
8686
@focus="${this.handleRippleFocus}"
8787
@blur="${this.handleRippleBlur}"

0 commit comments

Comments
 (0)