Skip to content

Commit 9e4b437

Browse files
Merge pull request #1177 from topcoder-platform/fix-ui-bugs
UI bugs: Fix font color, preserve line breaks
2 parents 8b8754c + 985f376 commit 9e4b437

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/apps/copilots/src/pages/copilot-opportunity-details/tabs/opportunity-details/OpportunityDetails.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ const OpportunityDetails: FC<{
1414
{props.opportunity?.skills.map(item => (<span className={styles.skillPill}>{item.name}</span>))}
1515
</div>
1616
<h2 className={styles.subHeading}> Description </h2>
17-
<p>
18-
{props.opportunity?.overview}
19-
</p>
17+
{props.opportunity?.overview && (
18+
<div dangerouslySetInnerHTML={{
19+
__html: props.opportunity.overview.replace(/\n/g, '<br />'),
20+
}}
21+
/>
22+
)}
2023
</div>
2124
<div>
2225
<h2 className={styles.subHeading}> Complexity </h2>

src/apps/copilots/src/pages/copilot-request-form/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ const CopilotRequestForm: FC<{}> = () => {
501501
.setFullYear(new Date()
502502
.getFullYear() + 2))}
503503
minYear={new Date()}
504+
className={styles.datepicker}
504505
/>
505506
<p className={styles.formRow}>How many weeks will you need the copilot for?</p>
506507
<InputText

src/apps/copilots/src/pages/copilot-request-form/styles.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,8 @@ $gradient: linear-gradient(
9797
margin-right: $sp-1;
9898
}
9999
}
100+
101+
.datepicker input{
102+
color: black;
103+
}
100104
}

0 commit comments

Comments
 (0)