We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc8b6d5 commit f6eb1d5Copy full SHA for f6eb1d5
.changeset/clean-yaks-drive.md
@@ -0,0 +1,5 @@
1
+---
2
+'@astrojs/starlight': patch
3
4
+
5
+Fixes a text selection issue for heading with a clickable anchor link when using double or triple click to select text.
packages/starlight/style/anchor-links.css
@@ -88,6 +88,9 @@ how we do it.
88
position: relative;
89
/* Move the anchor link over the heading element’s end-of-line padding. */
90
margin-inline-start: calc(-1 * var(--sl-anchor-icon-size));
91
+ /* Prevent double or triple clicks from potentially selecting the anchor link a11y text. */
92
+ -webkit-user-select: none;
93
+ user-select: none;
94
}
95
96
/* Increase clickable area for anchor links with a pseudo element that doesn’t impact layout. */
0 commit comments