note preview on click

This commit is contained in:
2026-01-25 12:09:21 +00:00
parent e2ee7a57e6
commit aa9d9acaa7
3 changed files with 111 additions and 2 deletions

View File

@@ -52,7 +52,10 @@ export default function ColorKeyboard({
backgroundColor: ["D", "E"].includes(note) ? "#000000" : "#ffffff",
color: ["D", "E"].includes(note) ? "#ffffff" : "#000000",
}
: { backgroundColor: color }
: {
backgroundColor: color,
color: ["D", "E"].includes(note) ? "#000000" : "#ffffff",
}
}
>
{note}