File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ return $.widget( "ui.calendar", {
321
321
322
322
_buildTitlebar : function ( ) {
323
323
return "<div role='header' id='" + this . gridId + "-title'>" +
324
- "<div id='" + this . gridId + "-month-label' class='ui-calendar-title'>" +
324
+ "<div id='" + this . gridId + "-month-label' role='alert' class='ui-calendar-title'>" +
325
325
this . _buildTitle ( ) +
326
326
"</div>" +
327
327
"<span class='ui-helper-hidden-accessible'>, " +
@@ -402,11 +402,16 @@ return $.widget( "ui.calendar", {
402
402
403
403
_buildDayCell : function ( day ) {
404
404
var content = "" ,
405
+ dateObject = new Date ( day . timestamp ) ,
406
+ dayName = this . _calendarDateOptions . formatWeekdayFull ( dateObject ) ,
405
407
attributes = [
406
408
"role='gridcell'" ,
407
- "aria-selected='" + ( this . _isCurrent ( day ) ? true : false ) + "'"
409
+ "aria-selected='" + ( this . _isCurrent ( day ) ? true : false ) + "'" ,
410
+ "aria-label='" + dayName + ", " + this . _format ( dateObject ) + "'" ,
411
+ "aria-describedby='" + this . gridId + "-month-label'" ,
412
+ "aria-hidden='" + true + "'"
408
413
] ,
409
- selectable = ( day . selectable && this . _isValid ( new Date ( day . timestamp ) ) ) ;
414
+ selectable = ( day . selectable && this . _isValid ( dateObject ) ) ;
410
415
411
416
if ( day . render ) {
412
417
attributes . push ( "id='" + this . id + "-" + day . year + "-" + day . month + "-" + day . date + "'" ) ;
You can’t perform that action at this time.
0 commit comments