Skip to content

Commit be4014c

Browse files
Don't overwrite existing properties in the style attribute
1 parent 18560c4 commit be4014c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlight-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ function Highlighter(options = hhDefaultOptions) {
836836
}
837837

838838
if (changeType === 'appearance') {
839-
this.annotatableContainer.style = `--hh-color: ${colorString}`;
839+
this.annotatableContainer.style.setProperty('--hh-color', `${colorString}`);
840840

841841
// Update selection background
842842
if (activeHighlightId && options.drawingMode === 'svg') {

0 commit comments

Comments
 (0)