mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 16:05:33 -04:00
show heading anchor link on keyboard focus
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user