Skip to content

Commit f6cee9a

Browse files
committed
fix: more color sync fixes
1 parent 3fbc94d commit f6cee9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const DeleteDialog: FC<PropsWithChildren<DeleteDialogProps>> = ({
4646
const confirmationId = `${hookId}-${DeleteDialog.name}-confirm`;
4747
const hasError = !deletionConfirmed && confirmationText.length > 0;
4848
const displayErrorMessage = hasError && !isFocused;
49-
const color = hasError ? "error" : "primary";
49+
const inputColor = hasError ? "error" : "primary";
5050

5151
return (
5252
<ConfirmDialog
@@ -86,13 +86,13 @@ export const DeleteDialog: FC<PropsWithChildren<DeleteDialogProps>> = ({
8686
onFocus={() => setIsFocused(true)}
8787
onBlur={() => setIsFocused(false)}
8888
label={`Name of the ${entity} to delete`}
89-
color={color}
89+
color={inputColor}
9090
error={displayErrorMessage}
9191
helperText={
9292
displayErrorMessage &&
9393
`${confirmationText} does not match the name of this ${entity}`
9494
}
95-
InputProps={{ color }}
95+
InputProps={{ color: inputColor }}
9696
inputProps={{
9797
["data-testid"]: "delete-dialog-name-confirmation",
9898
}}

0 commit comments

Comments
 (0)