diff --git a/ui/widgets/calendar.js b/ui/widgets/calendar.js index 767f285e9..6b8be9264 100644 --- a/ui/widgets/calendar.js +++ b/ui/widgets/calendar.js @@ -321,7 +321,7 @@ return $.widget( "ui.calendar", { _buildTitlebar: function() { return "
" + - "
" + + "" + ", " + @@ -402,11 +402,16 @@ return $.widget( "ui.calendar", { _buildDayCell: function( day ) { var content = "", + dateObject = new Date( day.timestamp ), + dayName = this._calendarDateOptions.formatWeekdayFull( dateObject ), attributes = [ "role='gridcell'", - "aria-selected='" + ( this._isCurrent( day ) ? true : false ) + "'" + "aria-selected='" + ( this._isCurrent( day ) ? true : false ) + "'", + "aria-label='" + dayName + ", " + this._format( dateObject ) + "'", + "aria-describedby='" + this.gridId + "-month-label'", + "aria-hidden='" + true + "'" ], - selectable = ( day.selectable && this._isValid( new Date( day.timestamp ) ) ); + selectable = ( day.selectable && this._isValid( dateObject ) ); if ( day.render ) { attributes.push( "id='" + this.id + "-" + day.year + "-" + day.month + "-" + day.date + "'" );