lekoala/bootstrap5-autocomplete

activeClass doesn't override itemClass?

Closed this issue · 2 comments

Taapo commented

When I use:

itemClass: "text-muted",

and then add:

activeClass: ["bg-primary", "text-white"],

The text inside bg-primary is still muted, not white ...

that is expected, text-muted add this .text-muted {
--bs-text-opacity: 1;
color: var(--bs-secondary-color)!important;
}
and therefore, it's not white

activeClass is added on top of the itemClass

closing this, let me know if you need further help