Skip to content

Commit

Permalink
fix(button-toggle): don't use divs inside button template (#20390)
Browse files Browse the repository at this point in the history
Along the same lines as #20376. Doesn't use divs inside the button toggle.

(cherry picked from commit 85e8f34)
  • Loading branch information
crisbeto authored and wagnermaciel committed Sep 16, 2020
1 parent b3ee889 commit 95e48bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/material/button-toggle/button-toggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
[attr.aria-label]="ariaLabel"
[attr.aria-labelledby]="ariaLabelledby"
(click)="_onButtonClick()">
<div class="mat-button-toggle-label-content">
<span class="mat-button-toggle-label-content">
<ng-content></ng-content>
</div>
</span>
</button>

<div class="mat-button-toggle-focus-overlay"></div>
<div class="mat-button-toggle-ripple" matRipple
<span class="mat-button-toggle-focus-overlay"></span>
<span class="mat-button-toggle-ripple" matRipple
[matRippleTrigger]="button"
[matRippleDisabled]="this.disableRipple || this.disabled">
</div>
</span>

0 comments on commit 95e48bb

Please sign in to comment.