File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ $mat-radio-ripple-radius: 20px;
10
10
.mat-radio-button {
11
11
display : inline-block ;
12
12
-webkit-tap-highlight-color : transparent ;
13
- outline : 0 ;
14
13
}
15
14
16
15
// Inner label container, wrapping entire element.
@@ -142,7 +141,7 @@ $mat-radio-ripple-radius: 20px;
142
141
opacity : 0.04 ;
143
142
}
144
143
145
- .mat-radio-button :not ( .mat-radio-disabled ) .cdk-focused & {
144
+ .mat-radio-button.cdk-focused & {
146
145
opacity : 0.12 ;
147
146
}
148
147
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ describe('MatRadio', () => {
723
723
const radioButtonEl =
724
724
predefinedFixture . debugElement . query ( By . css ( '.mat-radio-button' ) ) . nativeElement ;
725
725
726
- expect ( radioButtonEl . getAttribute ( 'tabindex' ) ) . toBe ( '-1' ) ;
726
+ expect ( radioButtonEl . getAttribute ( 'tabindex' ) ) . toBeFalsy ( ) ;
727
727
} ) ;
728
728
729
729
} ) ;
Original file line number Diff line number Diff line change @@ -336,8 +336,7 @@ export const _MatRadioButtonMixinBase:
336
336
'[class.mat-radio-checked]' : 'checked' ,
337
337
'[class.mat-radio-disabled]' : 'disabled' ,
338
338
'[class._mat-animation-noopable]' : '_animationMode === "NoopAnimations"' ,
339
- // Needs to be -1 so the `focus` event still fires.
340
- '[attr.tabindex]' : '-1' ,
339
+ '[attr.tabindex]' : 'null' ,
341
340
'[attr.id]' : 'id' ,
342
341
// Note: under normal conditions focus shouldn't land on this element, however it may be
343
342
// programmatically set, for example inside of a focus trap, in this case we want to forward
You can’t perform that action at this time.
0 commit comments