Skip to content

Commit 781f087

Browse files
committed
Git-2446:Fixed-Color change for date of the completed milestone
1 parent 8110363 commit 781f087

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/projects/detail/components/timeline/Milestone/Milestone.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ class Milestone extends React.Component {
155155
<div styleName="timeline-post">
156156
{(<div styleName={'background ' + ((this.state.isHoverHeader && !this.state.isEditing && !isCompleted) ? 'hover ': '')} />)}
157157
<div styleName="col-date">
158-
<div styleName="month">{month}</div>
159-
<div styleName="day">{date}</div>
158+
<div styleName={(isCompleted ? 'completed' : 'planned' )}>
159+
<div styleName="month">{month}</div>
160+
<div styleName="day">{date}</div>
161+
</div>
160162
</div>
161163
<div
162164
styleName={cn('col-timeline-post-con', {

src/projects/detail/components/timeline/Milestone/Milestone.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
width: 70px;
4444

4545
.month {
46-
color: $tc-gray-80;
4746
font-size: 10px;
4847
font-weight: 400;
4948
letter-spacing: 0.4px;
@@ -52,13 +51,20 @@
5251
text-transform: uppercase;
5352
}
5453
.day {
55-
color: $tc-black;
5654
font-size: 15px;
5755
font-weight: 500;
5856
line-height: 20px;
5957
text-align: right;
6058
position: relative;
6159
}
60+
61+
.planned {
62+
color: $tc-gray-30;
63+
}
64+
65+
.completed {
66+
color: $tc-black;
67+
}
6268
}
6369
&:last-child {
6470
.col-date {

0 commit comments

Comments
 (0)