|
1 | 1 | <div *ngIf="!isTouch" class="drp-flex drp-space-around">
|
2 |
| - <button class="drp-btn flat" (click)="yearSelected(year-1)" title="Previous year" aria-label="Previous year" |
3 |
| - [disabled]="year === minYear"> |
| 2 | + <button type="button" class="drp-btn flat" (click)="yearSelected(year-1)" title="Previous year" |
| 3 | + aria-label="Previous year" [disabled]="year === minYear"> |
4 | 4 | <doublechevronleft></doublechevronleft>
|
5 | 5 | </button>
|
6 |
| - <button class="drp-btn flat" (click)="monthSelected(-1)" title="Previous month" aria-label="Previous month" |
7 |
| - [disabled]="year === minYear && month === minMonth"> |
| 6 | + <button type="button" class="drp-btn flat" (click)="monthSelected(-1)" title="Previous month" |
| 7 | + aria-label="Previous month" [disabled]="year === minYear && month === minMonth"> |
8 | 8 | <chevronleft></chevronleft>
|
9 | 9 | </button>
|
10 | 10 | <label class="mb-0"> {{monthText}} {{year}} </label>
|
11 |
| - <button class="drp-btn flat next" (click)="monthSelected(1)" title="Next month" aria-label="Next month" |
| 11 | + <button type="button" class="drp-btn flat next" (click)="monthSelected(1)" title="Next month" aria-label="Next month" |
12 | 12 | [disabled]="year === maxYear && month === maxMonth">
|
13 | 13 | <chevronleft></chevronleft>
|
14 | 14 | </button>
|
15 |
| - <button class="drp-btn flat next" (click)="yearSelected(year+1)" title="Next Year" aria-label="Next Year" |
16 |
| - [disabled]="year === maxYear"> |
| 15 | + <button type="button" class="drp-btn flat next" (click)="yearSelected(year+1)" title="Next Year" |
| 16 | + aria-label="Next Year" [disabled]="year === maxYear"> |
17 | 17 | <doublechevronleft></doublechevronleft>
|
18 | 18 | </button>
|
19 | 19 | </div>
|
|
26 | 26 | <div class="drp-flex drp-column drp-calendar-column years" *ngIf="isTouch">
|
27 | 27 | <div class="drp-calendar-row" *ngFor="let y of yearsList; let i=index">
|
28 | 28 | <span (click)="yearSelected(y)" [class.active]="year === y">
|
29 |
| - <button class="drp-btn flat" [attr.aria-label]="y">{{ y }}</button> |
| 29 | + <button type="button" class="drp-btn flat" [attr.aria-label]="y">{{ y }}</button> |
30 | 30 | </span>
|
31 | 31 | </div>
|
32 | 32 | </div>
|
33 | 33 | <div class="drp-flex drp-column drp-calendar-column months" *ngIf="isTouch">
|
34 | 34 | <div class="drp-calendar-row" *ngFor="let m of monthsList;">
|
35 | 35 | <span (click)="monthSelected(m.value)" [class.active]="month === m.value">
|
36 |
| - <button class=" drp-btn flat" [attr.aria-label]="m.name">{{ m.name }}</button> |
| 36 | + <button type="button" class=" drp-btn flat" [attr.aria-label]="m.name">{{ m.name }}</button> |
37 | 37 | </span>
|
38 | 38 | </div>
|
39 | 39 | </div>
|
40 | 40 | <div class="drp-flex drp-column drp-calendar-column">
|
41 | 41 | <div class="drp-calendar-row" *ngFor="let week of weekList; let i=index">
|
42 | 42 | <span *ngFor="let day of weekList[i]" (click)="dateSelected(day)"
|
43 | 43 | [ngClass]="{'off':!isDateAvailable(day),'active':isSelectedDate(day),'disabled':isDisabled(day)}">
|
44 |
| - <button class="drp-btn flat" [disabled]="isDisabled(day)" |
| 44 | + <button type="button" class="drp-btn flat" [disabled]="isDisabled(day)" |
45 | 45 | [attr.aria-label]="day | formatDate: srFormat">{{ !isTouch ? day.format('D') : day.format('ddd D') }}</button>
|
46 | 46 | </span>
|
47 | 47 | </div>
|
|
51 | 51 | [selectedToDate]="selectedToDate" [minDate]="minDate" [maxDate]="maxDate" [format]="format" [isLeft]="isLeft"
|
52 | 52 | (timeChanged)="dateSelected($event)">
|
53 | 53 | </timepicker>
|
54 |
| -<button *ngIf="isTouch" (click)="scrollMeOutTop()" class="drp-btn flat next drp-next-calendar-cta" title="Set" |
55 |
| - aria-label="Set"> |
| 54 | +<button type="button" *ngIf="isTouch" (click)="scrollMeOutTop()" class="drp-btn flat next drp-next-calendar-cta" |
| 55 | + title="Set" aria-label="Set"> |
56 | 56 | SET <chevronleft></chevronleft>
|
57 | 57 | </button>
|
0 commit comments