Skip to content

Commit 1bd3851

Browse files
authored
fix: Text selection in code blocks (#8301)
* fix: codebox selectable code * fix: selectable text in popover
1 parent 4950c1d commit 1bd3851

File tree

1 file changed

+2
-0
lines changed
  • packages/rehype-shiki/src/transformers/twoslash

1 file changed

+2
-0
lines changed

packages/rehype-shiki/src/transformers/twoslash/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
.twoslash-hover {
44
cursor: text;
5+
user-select: text;
56
}
67

78
.twoslash-popup-code {
89
max-width: 600px;
910
display: block;
1011
width: fit-content;
12+
user-select: none;
1113
}
1214

1315
.twoslash-popup-code:not(:has(div)) {

0 commit comments

Comments
 (0)