fix(styling): update colors to be a11y-friendly and to show items due today in gray

This commit is contained in:
CuriousMagpie
2023-05-17 13:29:26 -04:00
parent 479cfb76ef
commit 7c1c18a329

View File

@@ -700,7 +700,7 @@
.icons {
margin-top: 4px;
color: $gray-300;
color: $gray-100;
font-style: normal;
&-right {
@@ -759,7 +759,7 @@
}
.due-overdue {
color: $red-50;
color: $maroon-10;
}
.calendar.svg-icon {
@@ -899,6 +899,7 @@
</style>
<!-- eslint-enable max-len -->
<script>
import moment from 'moment';
import { v4 as uuid } from 'uuid';
@@ -1125,7 +1126,7 @@ export default {
return moment.duration(endOfDueDate.diff(endOfToday));
},
checkIfOverdue () {
return this.calculateTimeTillDue().asDays() <= 0;
return this.calculateTimeTillDue().asDays() < 0;
},
formatDueDate () {
return moment(this.task.date).format(this.user.preferences.dateFormat.toUpperCase());