Skip to content

Commit

Permalink
fix(datepicker): set cursor on clickable elements (#4542)
Browse files Browse the repository at this point in the history
* Adds the `pointer` cursor to the calendar toggle and date cells, indicating that they're clickable.
* Sets the `default` cursor on the disable states, instead of the `text` cursor.

Fixes #4533.
  • Loading branch information
crisbeto authored and jelbourn committed May 15, 2017
1 parent 98dba31 commit d2d67f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/datepicker/calendar-body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar
padding: $mat-calendar-body-cell-padding 0;
text-align: center;
outline: none;
cursor: pointer;
}

.mat-calendar-body-disabled {
cursor: default;
}

.mat-calendar-body-cell-content {
Expand Down
1 change: 1 addition & 0 deletions src/lib/datepicker/datepicker-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ $mat-datepicker-toggle-icon-size: 24px !default;
border: none;
outline: none;
vertical-align: middle;
cursor: pointer;
}

0 comments on commit d2d67f5

Please sign in to comment.