File tree 2 files changed +7
-3
lines changed
projects/igniteui-angular/src/lib/calendar
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ export class IgxCalendarYearDirective {
48
48
return this . isCurrentYear ;
49
49
}
50
50
51
+ @HostBinding ( 'attr.tabindex' )
52
+ public get tabIndex ( ) : number {
53
+ return this . isCurrentYear ? 0 : - 1 ;
54
+ }
55
+
56
+
51
57
public get isCurrentYear ( ) : boolean {
52
58
return this . date . getFullYear ( ) === this . value . getFullYear ( ) ;
53
59
}
@@ -75,9 +81,6 @@ export class IgxCalendarMonthDirective {
75
81
@Output ( )
76
82
public onMonthSelection = new EventEmitter < Date > ( ) ;
77
83
78
- @HostBinding ( 'attr.tabindex' )
79
- public tabindex = 0 ;
80
-
81
84
@HostBinding ( 'class.igx-calendar__month' )
82
85
public get defaultCSS ( ) : boolean {
83
86
return ! this . isCurrentMonth ;
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export class IgxYearsViewComponent implements ControlValueAccessor {
139
139
*
140
140
* @hidden
141
141
*/
142
+ @Input ( )
142
143
@HostBinding ( 'attr.tabindex' )
143
144
public tabindex = 0 ;
144
145
You can’t perform that action at this time.
0 commit comments