Skip to content

Commit

Permalink
Improve nav link active styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ceolson01 committed Feb 14, 2020
1 parent a46bd60 commit 789b71f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@
white-space: nowrap;
}

.navLink:not(.navLinkActive):hover {
opacity: 0.8;
}

.navLink.navLinkActive {
color: var(--colony-black);
}

.draft .navLink {
/* Leave room for "pending dot" */
max-width: 87%;
}

.navLink:hover {
opacity: 0.8;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export const programsNav: string;
export const baseStyles: string;
export const draft: string;
export const navLink: string;
export const navLinkActive: string;
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const ColonyPrograms = ({
key={id}
>
<NavLink
activeClassName={styles.navLinkActive}
className={styles.navLink}
text={title || MSG.linkUntitledProgramText}
title={MSG.linkProgramTitleText}
Expand Down

0 comments on commit 789b71f

Please sign in to comment.