Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
  • packages/@vuepress/theme-default/styles

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /