File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,6 @@ describe('MatMenuBar', () => {
39
39
expect ( nativeMatMenubar . getAttribute ( 'tabindex' ) ) . toBe ( '0' ) ;
40
40
} ) ;
41
41
42
- it ( 'should toggle aria-orientation attribute' , ( ) => {
43
- expect ( nativeMatMenubar . getAttribute ( 'aria-orientation' ) ) . toBe ( 'horizontal' ) ;
44
-
45
- matMenubar . orientation = 'vertical' ;
46
- fixture . detectChanges ( ) ;
47
-
48
- expect ( nativeMatMenubar . getAttribute ( 'aria-orientation' ) ) . toBe ( 'vertical' ) ;
49
- } ) ;
50
-
51
42
it ( 'should toggle focused items on left/right click' , ( ) => {
52
43
nativeMatMenubar . focus ( ) ;
53
44
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ import {
27
27
encapsulation : ViewEncapsulation . None ,
28
28
changeDetection : ChangeDetectionStrategy . OnPush ,
29
29
host : {
30
- 'role' : 'menubar' ,
31
- 'class' : 'cdk-menu-bar mat-menubar' ,
32
- 'tabindex' : '0' ,
33
- '[attr.aria-orientation]' : 'orientation' ,
30
+ '[class.mat-menubar]' : 'true' ,
34
31
} ,
35
32
providers : [
36
33
{ provide : CdkMenuGroup , useExisting : MatMenuBar } ,
You can’t perform that action at this time.
0 commit comments