change field color in form on focus css code example
Example 1: css focus change color
<style>
.dabutton:focus {
background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Example 2: focus on input change label color
.input-group {
display: flex;
flex-direction: column-reverse;
}
input:focus + label {
color: red;
}