Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit dd442e4

Browse files
fix: color attribute
1 parent 20ed7db commit dd442e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

studio/src/app/utils/editor/node.utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class NodeUtils {
4949
const styleAttr: string = color === 'background' ? 'background-color' : 'color';
5050

5151
if (node.style[styleAttr] !== '' && node.style[styleAttr] !== 'initial') {
52-
return node.style[color];
52+
return node.style[styleAttr];
5353
}
5454

5555
return await this.findColors(node.parentElement, color, slide, deck);

0 commit comments

Comments
 (0)