Skip to content

Commit 81cce39

Browse files
authored
fix($theme-default): display header-anchor links when using keyboard navigation (#2699)
1 parent 67fffc3 commit 81cce39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vuepress/theme-default/styles/index.styl

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ h1, h2, h3, h4, h5, h6
125125
+ p, + pre, + .custom-block
126126
margin-top 2rem
127127

128+
&:focus .header-anchor,
128129
&:hover .header-anchor
129130
opacity: 1
130131

@@ -147,6 +148,7 @@ a.header-anchor
147148
margin-top 0.125em
148149
opacity 0
149150

151+
&:focus,
150152
&:hover
151153
text-decoration none
152154

0 commit comments

Comments
 (0)