Open elisechant opened 8 years ago
Are we able to move the location of the invalid class from the input to the container div for form fields so I can style the field as well as the input if invalid?
Currently:
<p> <label for="textinvalid">An invalid field</label> <input name="textinvalid" id="textinvalid" type="text" class="invalid"> </p>
Can it be:
<p class="invalid"> <label for="textinvalid">An invalid field</label> <input name="textinvalid" id="textinvalid" type="text"> </p>
This will give us the most flexibility for styling input behaviour.
Also side note, can you say why the wrapping component is a p rather than a div?
p
div
Are we able to move the location of the invalid class from the input to the container div for form fields so I can style the field as well as the input if invalid?
Currently:
Can it be:
This will give us the most flexibility for styling input behaviour.
Also side note, can you say why the wrapping component is a
p
rather than adiv
?