xxxxxxxxxx
1
2
<div class="card">
3
<div class="card-body">
4
<div class="alert alert-info mb-3">
5
If you tab through the input, or click it, then click off, the active class goes away.
6
</div>
7
<div class="form-outline">
8
<input type="text" class="form-control active" id="test" value="" />
9
<label for="test" class="form-label">Test</label>
10
</div>
11
</div>
12
</div>
xxxxxxxxxx
1
.form-outline .form-control~.form-label, .form-outline .form-control.form-label {
2
transform: translateY(-1rem) translateY(.1rem) scale(.8);
3
}
4
5
.form-outline .form-control~.form-notch .form-notch-middle {
6
border-top: none;
7
}
1
1
Console errors: 0