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 a6277a0 commit d0550ceCopy full SHA for d0550ce
src/code-view/internal.tsx
@@ -56,7 +56,7 @@ export function InternalCodeView({
56
return (
57
<tr key={index}>
58
{lineNumbers && (
59
- <td className={styles["line-number"]} aria-hidden={true}>
+ <td className={clsx(styles["line-number"], styles.unselectable)} aria-hidden={true}>
60
<Box color="text-status-inactive" fontSize="body-m">
61
{index + 1}
62
</Box>
src/code-view/styles.scss
@@ -41,6 +41,11 @@ $color-background-code-view-dark: #282c34;
41
padding-right: cs.$space-static-xs;
42
}
43
44
+.unselectable {
45
+ -webkit-user-select: none;
46
+ user-select: none;
47
+}
48
+
49
.code-line {
50
padding-left: cs.$space-static-xs;
51
0 commit comments