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
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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 %}