Skip to content

Commit da701fb

Browse files
authored
Custom Theme Addon -- Handle custom block text color
1 parent 2a11d8b commit da701fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/addons/addons/editor-theme3/theme3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default async function ({ addon, console }) {
136136
return tertiaryColor(category);
137137
};
138138
const textColor = (field) => {
139+
if (field.sourceBlock_.textColour) return field.sourceBlock_.textColour;
139140
if (addon.self.disabled || textMode() === "white") return "#ffffff";
140141
if (textMode() === "black") return "#000000";
141142
if (field) return field.sourceBlock_.getColourTertiary();

0 commit comments

Comments
 (0)