Skip to content

Commit

Permalink
fix(theme-default): headings anchor should not be selectable (#3063)
Browse files Browse the repository at this point in the history
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;).
  • Loading branch information
ramiy committed Feb 25, 2023
1 parent af79757 commit e5915a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vuepress/theme-default/styles/index.styl
Expand Up @@ -146,6 +146,7 @@ a.header-anchor
margin-left -0.87em
padding-right 0.23em
margin-top 0.125em
user-select none
opacity 0

&:focus,
Expand Down

0 comments on commit e5915a8

Please sign in to comment.