File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
src/material-experimental/mdc-radio Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 37
37
}
38
38
}
39
39
40
- @mixin mat-radio-density-mdc ($density-scale ) {}
40
+ @mixin mat-radio-density-mdc ($density-scale ) {
41
+ .mat-mdc-radio-button .mdc-radio {
42
+ @include mdc-radio-density ($density-scale );
43
+ }
44
+ }
41
45
42
46
@mixin mat-radio-theme-mdc ($theme ) {
43
47
$color : mat-get-color-config ($theme );
Original file line number Diff line number Diff line change 23
23
[matRippleTrigger] ="formField "
24
24
[matRippleDisabled] ="_isRippleDisabled() "
25
25
[matRippleCentered] ="true "
26
- [matRippleRadius] ="20 "
27
26
[matRippleAnimation] ="_rippleAnimation ">
28
27
< div class ="mat-ripple-element mat-radio-persistent-ripple "> </ div >
29
28
</ div >
Original file line number Diff line number Diff line change 2
2
@import ' @material/radio/variables.import' ;
3
3
@import ' @material/form-field/mixins.import' ;
4
4
@import ' ../mdc-helpers/mdc-helpers' ;
5
+ @import ' ../../material/core/style/layout-common' ;
5
6
6
7
@include mdc-radio-without-ripple ($query : $mat-base-styles-query );
7
8
@include mdc-form-field-core-styles ($query : $mat-base-styles-query );
8
9
9
10
// This is necessary because we do not depend on MDC's ripple, but have our own that should be
10
11
// positioned correctly. This can be removed once we start using MDC's ripple implementation.
11
12
.mat-mdc-radio-button .mat-radio-ripple {
12
- position : absolute ;
13
- left : calc (50% - #{$mdc-radio-icon-size } );
14
- top : calc (50% - #{$mdc-radio-icon-size } );
15
- height : $mdc-radio-icon-size * 2 ;
16
- width : $mdc-radio-icon-size * 2 ;
17
- z-index : 1 ;
13
+ @include mat-fill ;
14
+
18
15
pointer-events : none ;
16
+ border-radius : 50% ;
19
17
20
18
.mat-ripple-element :not (.mat-radio-persistent-ripple ) {
21
19
opacity : $mdc-radio-ripple-opacity ;
You can’t perform that action at this time.
0 commit comments