Skip to content

Commit 7fc08e6

Browse files
committed
Datepicker: Use button widgets for the previous and next arrows.
1 parent b13b8c5 commit 7fc08e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datepicker-rewrite/picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ $.widget( "ui.datepicker", {
256256
this.date.refresh();
257257

258258
this._createDatepicker();
259-
this.picker.find( "button" ).button();
259+
this.picker.find( "button, .ui-datepicker-header a" ).button();
260260

261261
if ( this.inline ) {
262262
this.picker.children().addClass( "ui-datepicker-inline" );

themes/base/jquery.ui.datepicker.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
.ui-datepicker .ui-datepicker-next {
2222
position: absolute;
2323
top: 2px;
24-
width: 1.8em;
25-
height: 1.8em;
24+
width: 19px;
25+
height: 18px;
2626
}
2727
.ui-datepicker .ui-datepicker-prev-hover,
2828
.ui-datepicker .ui-datepicker-next-hover {
@@ -40,8 +40,8 @@
4040
.ui-datepicker .ui-datepicker-next-hover {
4141
right: 1px;
4242
}
43-
.ui-datepicker .ui-datepicker-prev span,
44-
.ui-datepicker .ui-datepicker-next span {
43+
.ui-datepicker .ui-datepicker-prev .ui-icon,
44+
.ui-datepicker .ui-datepicker-next .ui-icon {
4545
display: block;
4646
position: absolute;
4747
left: 50%;

0 commit comments

Comments
 (0)