changing color on focus of input 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;
}