Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkbox not styled with bootstrap #996

Open
velteyn opened this issue Aug 26, 2019 · 0 comments
Open

checkbox not styled with bootstrap #996

velteyn opened this issue Aug 26, 2019 · 0 comments

Comments

@velteyn
Copy link

velteyn commented Aug 26, 2019

Expected behaviour

The checkbox should hook with bootstrap syling

Actual behaviour

Bootstrap style is missed

Gist/Plunker/Demo

according to this
http://embed.plnkr.co/B4BatpwxCa2cBoYo0oEQ/

label + checkbox should be put in this way:

<div class="checkbox">
            <input id="checkbox1" class="styled" type="checkbox">
            <label for="checkbox1">
                      Default
            </label>
 </div>

but you render the checkbox in this way:

<div class="checkbox ng-scope" ng-repeat="val in titleMapValues track by $index">
<label>
           <input type="checkbox" ng-disabled="form.readonly" sf-changed="form" class="" ng-model="titleMapValues[$index]" name="mycheck"> 

<span ng-bind-html="form.titleMap[$index].name" class="ng-binding">
value 1
</span>
</label>
</div>

so the bootstrap css

input[type="checkbox"].styled:checked + label::after, input[type="radio"].styled:checked + label::after {
    font-family: 'FontAwesome';
    content: "\f00c";
}

will never select the checkbox and you obtain a normal HTML checkbox.

Related issues

The result is also that the checkbox pin is not displayed.
I had to remove the bootstrap css for the label to be able to see the pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant