Skip to content
Snippets Groups Projects
Commit e9785a3a authored by Ivica Puljic's avatar Ivica Puljic
Browse files

by pivica: form required mark needs to have span elements so it does not...

by pivica: form required mark needs to have span elements so it does not conflict with custom checkbox/radio pseudo after element.
parent 4a9c900a
Branches
Tags
No related merge requests found
......@@ -16,7 +16,7 @@ label {
}
.form {
&-required::after {
&-required-mark::after {
display: inline-block;
margin-left: 0.3em;
content: '*';
......@@ -323,14 +323,6 @@ details {
&::before {
border: $input-btn-border-width solid $input-border-color;
}
// For some reason Bootstrap is adding after pseudo element which is
// absolute positioned and empty. This will mess up position of our
// required element so for now lets just reset position to
// static.
&.form-required::after {
position: static;
}
}
&-input:checked ~ .custom-control-label::before {
......
......@@ -25,6 +25,6 @@
%}
{% block label %}
{% if title is not empty or required -%}
<label{{ attributes.addClass(classes) }}>{{ title }}</label>
<label{{ attributes.addClass(classes) }}>{{ title }}{% if required %}<span class="form-required-mark"></span>{% endif %}</label>
{%- endif %}
{% endblock label %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment