Skip to content

Commit

Permalink
Remove highlight when clicking external studio link (#925)
Browse files Browse the repository at this point in the history
The "Record video" link kept being highlighted after it was clicked,
meaning more than one nav item was highlighted at once (since the active
route always is). This fixes the issue.
  • Loading branch information
LukasKalbertodt authored Sep 11, 2023
2 parents 72e100b + d12582d commit 926d7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const linkWithIconStyle = (isDark: boolean, iconPos: "left" | "right", ac
}),
},

"&:hover, &:focus": hoverActiveStyle,
"&:hover, &:focus-visible": hoverActiveStyle,
...active && {
color: COLORS.primary2,
"&": hoverActiveStyle,
Expand Down

0 comments on commit 926d7ed

Please sign in to comment.