Closed cfust closed 2 years ago
Alternate, it's possible to define those styles by adding this to your CSS:
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
.label-info {
background-color: #5bc0de;
}
Go to the .JS file and search:
label label-info
and change it for
badge badge-info
https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#options The classname for tags can be updated as below:
$('input').tagsinput({
tagClass: 'badge badge-info', \\ space-separated list of classes you want to add on each tag
...
});
Did this over here: https://github.com/vachigaggl/bootstrap-tagsinput, can create pull request if wanted.
In bootstrap 5 there's no badge-info
class either. It should be badge bg-info
.
Using Bootstrap v4 and the
label label-info
classes don't work. I found the solution is just replace that withbadge badge-info