show heading anchor link on keyboard focus

This commit is contained in:
jake committed 2022-07-29 09:39:06 -04:00
1 parent 1f56302527
commit f49cd3927c
3 files changed
+90 -90

No files matched your search

+2 -2
View File
@@ -35,8 +35,8 @@ const H = styled("h1", {
scrollMarginTop: "6.5rem",
},
// show anchor link when hovering anywhere over the heading line
[`&:hover ${Anchor}`]: {
// show anchor link when hovering anywhere over the heading line, or on keyboard tab focus
[`&:hover ${Anchor}, ${Anchor}:focus-visible`]: {
opacity: 1,
},