Closed lro-tiierisch closed 1 year ago
Hi, this is not a bug related to the framework, but it depends on how some browsers render some input fields (e.g., date) with the same padding as any other input.
One way to solvi this:
<form>
<div class="grid gap-xs bg-error margin-sm width-25%">
<div class="col-6@md flex flex-column">
<label class="form-label margin-bottom-xxxs" for="full-name">Full name</label>
<input class="form-control width-100% flex-grow" type="text" name="full-name" id="full-name">
</div>
<div class="col-6@md flex flex-column">
<label class="form-label margin-bottom-xxxs" for="date-of-birth">Date of birth</label>
<input class="form-control width-100%" type="date" name="date-of-birth" id="date-of-birth">
</div>
</div>
</form>
I've added .flex
and .flex-column
to the input wrapper, and .flex-grow
to the smaller input.
You are right. In Firefox the elements have the same height, but not in Chrome. Thanks for the suggested fix, it's working like a charm. 😊
The height of an input element with type date, month etc. doesn't match the height of other input elements like e.g. text or search.