File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
@import ' ../core/style/variables' ;
2
2
@import ' ../core/ripple/ripple' ;
3
+ @import ' ../core/style/vendor-prefixes' ;
3
4
@import ' ../../cdk/a11y/a11y' ;
4
5
5
6
@@ -16,6 +17,10 @@ $mat-radio-ripple-radius: 20px;
16
17
// Inner label container, wrapping entire element.
17
18
// Enables focus by click.
18
19
.mat-radio-label {
20
+ // Disable text selection on the label itself, because having text selected
21
+ // will prevent focus from reaching the label. Below we'll re-enable it only
22
+ // for the label's content so that people can still select the text.
23
+ @include user-select (none );
19
24
cursor : pointer ;
20
25
display : inline-flex ;
21
26
align-items : center ;
@@ -87,6 +92,9 @@ $mat-radio-ripple-radius: 20px;
87
92
88
93
// Text label next to radio.
89
94
.mat-radio-label-content {
95
+ // Re-enable text selection for the button's content since
96
+ // we disabled it above in the `.mat-radio-label`.
97
+ @include user-select (auto );
90
98
display : inline-block ;
91
99
order : 0 ;
92
100
line-height : inherit ;
You can’t perform that action at this time.
0 commit comments