New error state outline red under 32 char (#2951)

This commit is contained in:
RachelElysia
2021-11-16 12:30:04 -05:00
committed by GitHub
parent a760cdc26d
commit 321402ebb7
2 changed files with 8 additions and 1 deletions
@@ -30,7 +30,7 @@
border-radius: 4px;
&:focus {
border-bottom-color: $ui-error;
border-color: $ui-error;
background-color: $core-white;
color: $core-fleet-black;
}
@@ -52,6 +52,13 @@ const SecretEditorModal = ({
};
const onSecretChange = (value: string) => {
if (value.length < 32) {
setErrors({
secret: "Secret",
});
} else {
setErrors({});
}
setEnrollSecretString(value);
};