1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 19:26:10 +04:00

Merge pull request #751 from kilab-dev/checkbox-label-required

Added asterisk sign to checkbox element label with .required class
This commit is contained in:
Paweł Kuna
2020-12-27 19:04:39 +01:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -11,8 +11,12 @@
<label class="form-label required">Email</label>
<input type="email" class="form-control" autocomplete="off"/>
</div>
<div class="">
<div class="mb-3">
<label class="form-label">Phone number</label>
<input type="tel" class="form-control" autocomplete="off"/>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input"/>
<label class="form-check-label required">I agree to the Terms & Conditions</label>
</div>
</fieldset>

View File

@@ -20,6 +20,14 @@ Form check
.form-check-label {
display: block;
&.required {
&:after {
content: "*";
margin-left: .25rem;
color: $red;
}
}
}
.form-check-description {