File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
src/material-experimental/mdc-button Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 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 ;
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
Original file line number Diff line number Diff line change 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 () {
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments