Skip to content

Commit abeb18c

Browse files
committed
Standardize hyperlink colors
1 parent 13e8530 commit abeb18c

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

csm_web/frontend/src/components/course/SectionCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ export const SectionCard = ({
171171
</p>
172172
<p title="Mentor">
173173
<UserIcon width={iconWidth} height={iconHeight} />{" "}
174-
<Link to={`/profile/${mentor.user.id}`}>{mentor.name}</Link>
174+
<Link className="hyperlink" to={`/profile/${mentor.user.id}`}>
175+
{mentor.name}
176+
</Link>
175177
</p>
176178
<p title="Current enrollment">
177179
<GroupIcon width={iconWidth} height={iconHeight} /> {`${numStudentsEnrolled}/${capacity}`}

csm_web/frontend/src/components/section/MentorSectionInfo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export default function MentorSectionInfo({
6060
<h3 className="section-detail-page-title">
6161
{isCoordinator ? (
6262
<>
63-
<Link to={`/profile/${mentor.user.id}`}>{`${mentor.name || mentor.email}`}</Link>&apos;s
63+
<Link className="hyperlink" to={`/profile/${mentor.user.id}`}>{`${mentor.name || mentor.email}`}</Link>
64+
&apos;s
6465
</>
6566
) : (
6667
"My"
@@ -103,7 +104,7 @@ export default function MentorSectionInfo({
103104
courseRestricted={courseRestricted}
104105
/>
105106
)}
106-
<Link to={`/profile/${studentUser.id}`}>
107+
<Link className="hyperlink" to={`/profile/${studentUser.id}`}>
107108
<span className="student-info">{name || email}</span>
108109
</Link>
109110
</td>

csm_web/frontend/src/components/section/MentorSectionRoster.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export default function MentorSectionRoster({ id }: MentorSectionRosterProps) {
4141
{students.map(({ name, email, id, user: studentUser }) => (
4242
<tr key={id} className="csm-table-row">
4343
<td className="csm-table-item">
44-
<Link to={`/profile/${studentUser.id}`}>{name}</Link>
44+
<Link className="hyperlink" to={`/profile/${studentUser.id}`}>
45+
{name}
46+
</Link>
4547
</td>
4648
<td className="csm-table-item">{email}</td>
4749
</tr>

csm_web/frontend/src/components/section/StudentSection.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function StudentSectionInfo({ mentor, spacetimes, associatedProfileId }: Student
8686
{mentor && (
8787
<InfoCard title="Mentor">
8888
<h5>
89-
<Link to={`/profile/${mentor.user.id}`}>{mentor.name}</Link>
89+
<Link className="hyperlink" to={`/profile/${mentor.user.id}`}>
90+
{mentor.name}
91+
</Link>
9092
</h5>
9193
<a href={`mailto:${mentor.email}`}>{mentor.email}</a>
9294
</InfoCard>

csm_web/frontend/src/css/base/base.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,15 @@ h6 {
8484

8585
border-radius: 20px;
8686
}
87+
88+
// Styling for hyperlinks
89+
.hyperlink {
90+
color: $csm-link-blue;
91+
92+
&:link,
93+
&:visited,
94+
&:hover,
95+
&:active {
96+
color: $csm-link-blue;
97+
}
98+
}

0 commit comments

Comments
 (0)