Skip to content

Commit

Permalink
Merge pull request #13478 from brendandahl/find-regression
Browse files Browse the repository at this point in the history
Fix find highlighting regression from #13306.
  • Loading branch information
Snuffleupagus committed Jun 4, 2021
2 parents ed9d5c4 + 1da42e8 commit 3b502f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion web/text_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@
}

.textLayer .highlight {
position: relative;
margin: -1px;
padding: 1px;
background-color: rgba(180, 0, 170, 1);
border-radius: 4px;
}

.textLayer .highlight.appended {
position: initial;
}

.textLayer .highlight.begin {
border-radius: 4px 0 0 4px;
}
Expand Down
2 changes: 1 addition & 1 deletion web/text_layer_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class TextLayerBuilder {
const node = document.createTextNode(content);
if (className) {
const span = document.createElement("span");
span.className = className;
span.className = `${className} appended`;
span.appendChild(node);
div.appendChild(span);
return;
Expand Down

0 comments on commit 3b502f7

Please sign in to comment.