Skip to content

Commit e5915a8

Browse files
authored
fix(theme-default): headings anchor should not be selectable (#3063)
Currently, when users select the page content to copy & paste the text, it also selects the headings # anchors. This PR removes the headings anchor-selection by defining the anchors as not selectable (user-select: none;).
1 parent af79757 commit e5915a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ a.header-anchor
146146
margin-left -0.87em
147147
padding-right 0.23em
148148
margin-top 0.125em
149+
user-select none
149150
opacity 0
150151

151152
&:focus,

0 commit comments

Comments
 (0)