CreativeBulma / bulma-tagsinput

Bulma's extension providing user interface to manage tags supporting autocomplete.
MIT License
62 stars 21 forks source link

How does the size work? #23

Open mebibou opened 3 years ago

mebibou commented 3 years ago

When using with an input like this:

<input class="input is-small">

I was expecting the tags-input to keep the correct input size, but instead it became much bigger. Looking at the transformed html, I now have this:

<div class="tags-input">
  <input class="input is-small">
</div>

But looking at the sass file, it seems the size will only work if is-small is applied on .tags-input, which is not the case here. Is it a bug? or an option to give when using new BulmaTagsInput(selector, options);

mebibou commented 3 years ago

Actually even when I add the is-small class on the tags-input, the input it still much bigger than it should

greenhost87 commented 3 years ago

Same problem

mebibou commented 2 years ago

Temporary solution:

.tags-input {
  min-height: auto;

  .input {
    border: 0;
    height: initial;
    margin: initial;
  }
}