Skip to content

Commit

Permalink
fix: wrong text-color class and text contrast on dates page (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk authored Mar 11, 2024
1 parent a2d7f70 commit b715959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/course-home/dates-tab/timeline/badgelist.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ function getBadgeListAndColor(date, intl, item, items) {
message: messages.today,
shownForDay: isToday,
bg: 'bg-warning-300',
className: 'text-black',
className: 'text-dark',
},
{
message: messages.completed,
shownForDay: assignments.length && assignments.every(isComplete),
shownForItem: x => isLearnerAssignment(x) && isComplete(x),
bg: 'bg-light-500',
className: 'text-black',
className: 'text-dark',
},
{
message: messages.pastDue,
shownForDay: assignments.length && assignments.every(isPastDue),
shownForItem: x => isLearnerAssignment(x) && isPastDue(x),
bg: 'bg-dark-200',
className: 'text-white',
className: 'text-dark',
},
{
message: messages.dueNext,
Expand Down

0 comments on commit b715959

Please sign in to comment.