Changed note text color based off of background color

This commit is contained in:
Mitchell McCaffrey 2020-11-05 14:48:32 +11:00
parent a6085599dd
commit 5fd3f6d814

View File

@ -156,7 +156,11 @@ function Note({
/> />
<Text <Text
text={note.text} text={note.text}
fill="black" fill={
note.color === "black" || note.color === "darkGray"
? "white"
: "black"
}
align="center" align="center"
verticalAlign="middle" verticalAlign="middle"
padding={textPadding} padding={textPadding}