Skip to content

Commit 3b502f7

Browse files
Merge pull request #13478 from brendandahl/find-regression
Fix find highlighting regression from #13306.
2 parents ed9d5c4 + 1da42e8 commit 3b502f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

web/text_layer_builder.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,16 @@
3434
}
3535

3636
.textLayer .highlight {
37-
position: relative;
3837
margin: -1px;
3938
padding: 1px;
4039
background-color: rgba(180, 0, 170, 1);
4140
border-radius: 4px;
4241
}
4342

43+
.textLayer .highlight.appended {
44+
position: initial;
45+
}
46+
4447
.textLayer .highlight.begin {
4548
border-radius: 4px 0 0 4px;
4649
}

web/text_layer_builder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class TextLayerBuilder {
239239
const node = document.createTextNode(content);
240240
if (className) {
241241
const span = document.createElement("span");
242-
span.className = className;
242+
span.className = `${className} appended`;
243243
span.appendChild(node);
244244
div.appendChild(span);
245245
return;

0 commit comments

Comments
 (0)