WIP update focus and hover styles.
This commit is contained in:
parent
b054afaf9a
commit
ca05c03fc5
3 changed files with 21 additions and 6 deletions
|
|
@ -102,13 +102,13 @@ export default {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
border: 1px solid $gray-500;
|
border: 1px solid $gray-500;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
&:hover {
|
|
||||||
box-shadow: 0 0 0 4px #9fcee6;
|
|
||||||
}
|
|
||||||
&:focus {
|
&:focus {
|
||||||
box-shadow: 0 0 0 2.5px $blue;
|
box-shadow: 0 0 0 2.5px $blue;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0 0 0 4px $blue-300;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -109,13 +109,13 @@ export default {
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
border: 1px solid $gray-500;
|
border: 1px solid $gray-500;
|
||||||
height: 88px;
|
height: 88px;
|
||||||
&:hover {
|
|
||||||
box-shadow: 0 0 0 4px #9fcee6;
|
|
||||||
}
|
|
||||||
&:focus {
|
&:focus {
|
||||||
box-shadow: 0 0 0 2.5px $blue;
|
box-shadow: 0 0 0 2.5px $blue;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0 0 0 4px $blue-300;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
color: $gray-500;
|
color: $gray-500;
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ import { errorMessages } from "@/constants/error-messages";
|
||||||
import { routerParams } from "@/router/router-constants/router-params";
|
import { routerParams } from "@/router/router-constants/router-params";
|
||||||
import { required, regex } from "@/helpers/validation-rules";
|
import { required, regex } from "@/helpers/validation-rules";
|
||||||
import { Form, defineRule } from "vee-validate";
|
import { Form, defineRule } from "vee-validate";
|
||||||
|
import { useField, validate } from "vee-validate";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule("first-name-required", required(errorMessages.FIRST_NAME_REQUIRED));
|
defineRule("first-name-required", required(errorMessages.FIRST_NAME_REQUIRED));
|
||||||
|
|
@ -86,6 +87,20 @@ export default {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
setup(props) {
|
||||||
|
const { errorMessage, handleBlur, handleChange, meta, validate, errors } = useField(
|
||||||
|
props.validationRules,
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
errorMessage,
|
||||||
|
handleBlur,
|
||||||
|
handleChange,
|
||||||
|
validate,
|
||||||
|
meta,
|
||||||
|
errors,
|
||||||
|
};
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
techNotes: "",
|
techNotes: "",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue