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