change label color when input focus code example
Example: focus on input change label color
.input-group {
display: flex;
flex-direction: column-reverse;
}
input:focus + label {
color: red;
}
.input-group {
display: flex;
flex-direction: column-reverse;
}
input:focus + label {
color: red;
}