未验证 提交 f90aa8d0 编写于 作者: P Paweł Kuna 提交者: GitHub

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

Added asterisk sign to checkbox element label with .required class
......@@ -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>
......@@ -20,6 +20,14 @@ Form check
.form-check-label {
display: block;
&.required {
&:after {
content: "*";
margin-left: .25rem;
color: $red;
}
}
}
.form-check-description {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册