diff --git a/app/components/CustomizedColorsInput.tsx b/app/components/CustomizedColorsInput.tsx
index 37ea6ef9e..f242e3f56 100644
--- a/app/components/CustomizedColorsInput.tsx
+++ b/app/components/CustomizedColorsInput.tsx
@@ -3,7 +3,7 @@ import { Label } from "./Label";
import * as React from "react";
import { Button } from "./Button";
-const EDITABLE_COLORS = [
+const EDITABLE_CSS_VARS = [
"bg",
"bg-darker",
"bg-lighter",
@@ -13,7 +13,7 @@ const EDITABLE_COLORS = [
] as const;
type CustomColorsRecord = Partial<
- Record<(typeof EDITABLE_COLORS)[number], string>
+ Record<(typeof EDITABLE_CSS_VARS)[number], string>
>;
export function CustomizedColorsInput({
@@ -31,31 +31,32 @@ export function CustomizedColorsInput({
- {EDITABLE_COLORS.map((color) => {
+ {EDITABLE_CSS_VARS.map((cssVar) => {
return (
-
- {t(`custom.colors.${color}`)}
+
+ {t(`custom.colors.${cssVar}`)}
{
const extras: Record = {};
- if (color === "bg-lighter") {
+ if (cssVar === "bg-lighter") {
extras["bg-lightest"] = `${e.target.value}80`;
}
- setColors({ ...colors, ...extras, [color]: e.target.value });
+ setColors({ ...colors, ...extras, [cssVar]: e.target.value });
}}
+ data-testid={`color-input-${cssVar}`}
/>