Choices-js/Choices

border-radius please help

Opened this issue · 1 comments

Choices looks perfect, I just want to keep border radius (upper left corner and upper right corner) when dropdown is opened.

This is closed:
Screenshot 2024-10-10 181928

This is opened:
Screenshot 2024-10-10 182147

I would like on upper corners to keep border radious when dropdown is opened:
Corners

Thanks for any hint, how to do this.

You can check out the examples for an example like that: https://choices-js.github.io/Choices/ –– in short what you need to do:

/* default border-radius */
.choices__inner {
    border-radius: ...
}

/* reset bottom border-radius if open */
.choices.is-open .choices__inner {
    border-bottom-right-radius: unset;
    border-bottom-left-radius: unset;
}

Hope that helps!