Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add cursor pointer to calendar icon #14502

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/components/calendar/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
border-bottom-left-radius: 0;
}

.p-calendar-icon {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm wrong, but it is not necessary add cursor-pointer and it is correct the default cursor.

cursor: pointer;
}

/* Fluid */
.p-fluid .p-calendar {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const CALENDAR_VALUE_ACCESSOR: any = {
</ng-container>
</button>
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" />
<CalendarIcon *ngIf="!inputIconTemplate" (click)="onButtonClick($event)" [styleClass]="'p-calendar-icon'"/>
<ng-container *ngTemplateOutlet="inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
</ng-container>
</ng-template>
Expand Down
Loading