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 6
6
// ripple and state container so that they fill the button, match the border radius, and avoid
7
7
// pointer events.
8
8
@mixin _mat-button-interactive () {
9
- .mat- mdc-button-state ::before , .mat- mdc-button-state ::after {
9
+ .mdc-button__ripple ::before , .mdc-button__ripple ::after {
10
10
content : ' ' ;
11
11
pointer-events : none ;
12
12
position : absolute ;
20
20
}
21
21
22
22
// 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 {
24
24
@include mat-fill ;
25
25
26
26
// Disable pointer events for the ripple container and state overlay because the container
Original file line number Diff line number Diff line change 9
9
// Selector for the element that has a background color and opacity applied to its ::before and
10
10
// ::after for state interactions (hover, active, focus). Their API calls this their
11
11
// "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 ' ;
13
13
14
14
// Applies the disabled theme color to the text color.
15
15
@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 >
2
2
3
3
< ng-content select =".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]) ">
4
4
</ ng-content >
Original file line number Diff line number Diff line change 29
29
// In order to work around this issue by *not* hiding overflow, we adjust the child elements
30
30
// to fully cover the actual button element. This means that the border-radius would be correct
31
31
// 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 {
33
34
top : - $mdc-button-outlined-border-width ;
34
35
left : - $mdc-button-outlined-border-width ;
35
36
bottom : - $mdc-button-outlined-border-width ;
36
37
right : - $mdc-button-outlined-border-width ;
38
+ border : none ;
37
39
}
You can’t perform that action at this time.
0 commit comments