feat: Highlight active ListItem in outline. (#2760)

This commit is contained in:
dkkb 2021-11-13 09:22:37 +08:00 committed by GitHub
parent 94a2e453eb
commit b616292fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ const ListItem = styled("li")`
line-height: 1.3;
border-right: 3px solid
${(props) => (props.active ? props.theme.divider : "transparent")};
a {
color: ${(props) =>
props.active ? props.theme.primary : props.theme.text};
}
`;
const Link = styled("a")`