Skip to content

Commit 2afc047

Browse files
committed
fix(material-experimental/mdc-button): rename state class
1 parent 2f84389 commit 2afc047

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/material-experimental/mdc-button/_button-base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// ripple and state container so that they fill the button, match the border radius, and avoid
77
// pointer events.
88
@mixin _mat-button-interactive() {
9-
.mat-mdc-button-state::before, .mat-mdc-button-state::after {
9+
.mdc-button__ripple::before, .mdc-button__ripple::after {
1010
content: '';
1111
pointer-events: none;
1212
position: absolute;
@@ -20,7 +20,7 @@
2020
}
2121

2222
// The ripple container should match the bounds of the entire button.
23-
.mat-mdc-button-ripple, .mat-mdc-button-state {
23+
.mat-mdc-button-ripple, .mdc-button__ripple {
2424
@include mat-fill;
2525

2626
// Disable pointer events for the ripple container and state overlay because the container

src/material-experimental/mdc-button/_mdc-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Selector for the element that has a background color and opacity applied to its ::before and
1010
// ::after for state interactions (hover, active, focus). Their API calls this their
1111
// "ripple target", but we do not use it as our ripple, just state color.
12-
$mat-button-state-target: '.mat-mdc-button-state';
12+
$mat-button-state-target: '.mdc-button__ripple';
1313

1414
// Applies the disabled theme color to the text color.
1515
@mixin _mat-button-disabled-color() {

src/material-experimental/mdc-button/button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<span class="mat-mdc-button-state"></span>
1+
<span class="mdc-button__ripple"></span>
22

33
<ng-content select=".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])">
44
</ng-content>

src/material-experimental/mdc-button/button.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
// In order to work around this issue by *not* hiding overflow, we adjust the child elements
3030
// to fully cover the actual button element. This means that the border-radius would be correct
3131
// then. See: https://github.com/angular/components/issues/13738
32-
.mat-mdc-outlined-button .mat-mdc-button-ripple {
32+
.mat-mdc-outlined-button .mat-mdc-button-ripple,
33+
.mat-mdc-outlined-button .mdc-button__ripple {
3334
top: -$mdc-button-outlined-border-width;
3435
left: -$mdc-button-outlined-border-width;
3536
bottom: -$mdc-button-outlined-border-width;
3637
right: -$mdc-button-outlined-border-width;
38+
border: none;
3739
}

0 commit comments

Comments
 (0)