berkanakyurek / select2-bootstrap4-theme

A theme for Select2 v4 and Bootstrap 4
https://berkan52.github.io/select2-bootstrap4-theme/
MIT License
91 stars 41 forks source link

style for selected elements incomplete #5

Open ToBe998 opened 6 years ago

ToBe998 commented 6 years ago

The design for multi-select items seems off. The selected elements are to small and not in line with bootstrap 4 elements.

I changed the style with these additional lines:

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    margin: 0 0.175rem 0.2em 0;
    padding: 0.5rem 0.75rem;
    border-color: #80bdff;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    padding: 0.2rem 0.375rem 0 0.75rem;
}
VictorioBerra commented 6 years ago

@ToBe998 can you please submit this as a pull-request? I would consider this library as broken without this fix. It's a shame the owner is not putting in the time to add fixes like these.