Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/TopNav/SubNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SubNav = ({
const to = _.isEmpty(level3.link) ? level3.href : level3.link
return (
<Link
className={cn(styles.secondaryNavItem, level3.id === activeChildId && styles.secondaryNavItemOpen)}
className={cn(styles.secondaryNavItem, level3.id === activeChildId && styles.secondaryNavItemOpen, level3.title === 'All Challenges' && styles.allChallengeClickable)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LieutenantRoger This not a valid solution, because this is hardcoded if we change the menu to any other sentence this fix will stop working.

key={`level3-${i}`}
to={to}
onClick={createHandleClickItem(level3.id)}
Expand Down
4 changes: 4 additions & 0 deletions src/components/TopNav/SubNav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
@include Roboto-Bold;
@include not-clickable;
}
&.allChallengeClickable {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also just add CSS class to specific menu name not valid.

cursor: pointer;
pointer-events: auto;
}
}
}
}