Opened 6 years ago

Closed 6 years ago

#16687 closed defect (fixed)

dijit/tests/test_Calendar.html does not highlight days set by getClassForDate

Reported by: Paul Christopher Owned by: bill
Priority: undecided Milestone: 1.9
Component: Dijit Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:



See BigCalendar adds special classes for certain days (line 46 et seq.):

getClassForDate: function(date){
 if(!(date.getDate() % 10)){ return "blue"; } // apply special style to all days divisible by 10

This works but

 .blue { color: blue }

have no effect/ is overridden by the cascade. I.e. looking at the user interface, it seems that getClassForDate is not working, since the respective days are not written in blue text as desired.

Styles are correctly applied by adding !important

 .blue { color: blue !important }

Change History (2)

comment:1 Changed 6 years ago by bill

Milestone: tbd1.9
Status: newassigned

Thanks, I'll make that fix, although examples like this should really be in the reference guide rather than the code.

comment:2 Changed 6 years ago by bill

Resolution: fixed
Status: assignedclosed

In [30686]:

fix precedence of custom CSS for big Calendar, fixes #16687

Note: See TracTickets for help on using tickets.