apalfrey / select2-bootstrap-5-theme

A Select2 v4 theme for Bootstrap 5
https://apalfrey.github.io/select2-bootstrap-5-theme/
MIT License
213 stars 48 forks source link

Option disabled attr #20

Closed mahlenko closed 3 years ago

mahlenko commented 3 years ago

Hi, the options marked with the disabled attribute are not stylized in any way. I made this option, it would be nice if your package had such support.

.select2-results__option {
    &[aria-disabled] {
        @extend .text-secondary;
        opacity: .5;
    }
}
apalfrey commented 3 years ago

This has already been added in v1.1.1: https://github.com/apalfrey/select2-bootstrap-5-theme/releases/tag/1.1.1

If you look at the examples, you should be able to see the styling on the dropdowns (see image below)

image