diff --git a/styles/global.css b/styles/global.css index 1aa135bc2..644506f78 100644 --- a/styles/global.css +++ b/styles/global.css @@ -7,6 +7,14 @@ @import "@telegraph/input/default.css"; @import "@telegraph/menu/default.css"; +/* Prevent line numbers from being copied when selecting code */ +.react-syntax-highlighter-line-number { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + .tgraph-content { color: var(--tgph-gray-12) !important; }