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

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")`