Skip to content

Commit

Permalink
refactor(RouteRow): Add background on hover, outline when active.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed May 30, 2024
1 parent 17e7eae commit 566e514
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/components/viewers/route-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const StyledRouteRow = styled.li`
// Route Row Button sits invisible on top of the route name and info.
export const RouteRowLink = styled(Link)`
align-items: center;
border-radius: 4px;
display: flex;
min-height: 50px;
padding: 5px;
Expand All @@ -46,12 +47,17 @@ export const RouteRowLink = styled(Link)`
width: 100%;
&:hover {
background-color: ${blue[50]};
color: inherit;
text-decoration: none;
}
&.active {
background-color: ${blue[50]};
border-radius: 4px;
color: inherit;
outline: 2px solid ${blue[200]};
outline-offset: -2px;
text-decoration: none;
}
`

Expand Down

0 comments on commit 566e514

Please sign in to comment.