Skip to content

Commit

Permalink
Merge pull request #6123 from nextcloud/fix/search_decoration_data_attr
Browse files Browse the repository at this point in the history
fix(search): Add data attribute to search decoration
  • Loading branch information
mejo- authored Jul 25, 2024
2 parents b534e47 + 122052e commit 462fcb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/searchDecorations.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export function highlightResults(doc, results) {
results.forEach((result) => {
decorations.push(
Decoration.inline(result.from, result.to, {
'data-text-el': 'search-decoration',
style: 'background-color: #ead637; color: black; border-radius: 2px;',
}),
)
Expand Down

0 comments on commit 462fcb6

Please sign in to comment.