Skip to content

Commit 7ca2d16

Browse files
Ivan KitanovIvan Kitanov
authored andcommitted
chore(dateRange): changing the order of the dialog buttons to match WC
1 parent c94bc05 commit 7ca2d16

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

projects/igniteui-angular/src/lib/date-common/calendar-container/calendar-container.component.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<ng-template #defaultPickerActions>
22
@if (closeButtonLabel || cancelButtonLabel || todayButtonLabel) {
33
<div class="igx-date-picker__buttons">
4+
@if (cancelButtonLabel) {
5+
<button
6+
#cancelButton type="button"
7+
igxButton="flat" igxRipple
8+
(click)="calendarCancel.emit({ owner: this})"
9+
>
10+
{{ cancelButtonLabel }}
11+
</button>
12+
}
413
@if (closeButtonLabel) {
514
<button
615
#closeButton
@@ -12,15 +21,6 @@
1221
{{ closeButtonLabel }}
1322
</button>
1423
}
15-
@if (cancelButtonLabel) {
16-
<button
17-
#cancelButton type="button"
18-
igxButton="flat" igxRipple
19-
(click)="calendarCancel.emit({ owner: this})"
20-
>
21-
{{ cancelButtonLabel }}
22-
</button>
23-
}
2424
@if (todayButtonLabel) {
2525
<button
2626
#todayButton

0 commit comments

Comments
 (0)