Choices icon indicating copy to clipboard operation
Choices copied to clipboard

border-radius please help

Open kosirm opened this issue 1 year ago • 2 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.

kosirm avatar Oct 10 '24 16:10 kosirm

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!

fraudoudou avatar Dec 20 '24 17:12 fraudoudou

That's not really an issue but just not knowing how to apply own CSS?

zoglo avatar Aug 15 '25 23:08 zoglo