Skip to content

Commit

Permalink
Remove highlight-now class
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 22, 2022
1 parent 35911c3 commit c8b03ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
9 changes: 0 additions & 9 deletions src/cal-heatmap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
stroke-width: 1;
}

rect.highlight-now {
stroke: red;
}

text.highlight-now {
fill: red;
font-weight: 800;
}

.weekday-label-text {
font-size: 10px;
fill: currentColor;
Expand Down
8 changes: 1 addition & 7 deletions src/subDomain/SubDomainPainter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,7 @@ export default class SubDomainPainter {
if (date.highlight.length > 0) {
date.highlight.forEach((d) => {
if (DateHelper.datesFromSameInterval(subDomain.type, +d, timestamp)) {
classname = DateHelper.datesFromSameInterval(
subDomain.type,
+d,
new Date(),
) ?
'highlight-now' :
'highlight';
classname = 'highlight';
}
});
}
Expand Down

0 comments on commit c8b03ad

Please sign in to comment.