Skip to content

Commit

Permalink
chore(plugin-basic): unified style format
Browse files Browse the repository at this point in the history
  • Loading branch information
lastnigtic committed Aug 10, 2021
1 parent 74b435f commit 3436909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-basic/src/inline/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Background extends Inline<IBackgroundAttrs> {
public toDOM = (node: Node) => {
const { color } = node.attrs;
const renderColor = color && toHex(color) !== toHex(this.attrs.color.default) && color;
return ['span', renderColor ? { style: `background-color: ${node.attrs.color}` } : {}, 0] as DOMOutputSpec;
return ['span', renderColor ? { style: `background-color: ${node.attrs.color};` } : {}, 0] as DOMOutputSpec;
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-basic/src/inline/color/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Color extends Inline<IColorAttrs> {
public toDOM = (node: Node) => {
const { color } = node.attrs;
const renderColor = color && toHex(color) !== toHex(this.attrs.color.default) && color;
return ['span', renderColor ? { style: `color: ${node.attrs.color}` } : {}, 0] as DOMOutputSpec;
return ['span', renderColor ? { style: `color: ${node.attrs.color};` } : {}, 0] as DOMOutputSpec;
};
}

Expand Down

0 comments on commit 3436909

Please sign in to comment.