diff --git a/src/components/controls/ColorKeyboard.tsx b/src/components/controls/ColorKeyboard.tsx index 8e25918..34eaa3c 100644 --- a/src/components/controls/ColorKeyboard.tsx +++ b/src/components/controls/ColorKeyboard.tsx @@ -49,8 +49,8 @@ export default function ColorKeyboard({ style={ isActive ? { - backgroundColor: note === "E" ? "#000000" : "#ffffff", - color: note === "E" ? "#ffffff" : "#000000", + backgroundColor: ["D", "E"].includes(note) ? "#000000" : "#ffffff", + color: ["D", "E"].includes(note) ? "#ffffff" : "#000000", } : { backgroundColor: color } } @@ -64,6 +64,7 @@ export default function ColorKeyboard({ {BLACK_KEYS.map((key) => { const color = colorByNote[key.note]; const isActive = color.toLowerCase() === value.toLowerCase(); + const width = 10; return (