IO-1558 Add color to dates that are today.

This commit is contained in:
Patrick Fic
2022-01-17 12:08:09 -08:00
parent 821b044515
commit e2941bfe84
2 changed files with 12 additions and 11 deletions

View File

@@ -92,13 +92,14 @@
}
.production-completion-1 {
animation: production-completion-1-blinker 5s linear infinite;
}
@keyframes production-completion-1-blinker {
50% {
background: rgba(207, 12, 12, 0.555);
}
color: rgba(207, 12, 12, 0.8);
// animation: production-completion-1-blinker 1s linear infinite;
}
// @keyframes production-completion-1-blinker {
// 50% {
// }
// }
.react-resizable {
position: relative;

View File

@@ -72,14 +72,14 @@ export default function ProductionListDate({ record, field, time }) {
style={{
height: "19px",
}}
className={
!!record[field] && moment().isSame(moment(record[field]), "day")
? "production-completion-1"
: ""
}
>
<DateFormatter
bordered={false}
className={
!!record[field] && new Date(record[field]) - Now < OneCalendarDay
? "production-completion-1"
: ""
}
>
{record[field]}
</DateFormatter>