Skip to content

custom class for MultiSelect component #3548

Answered by ArgoZhang
ArgoZhang asked this question in Q&A
Discussion options

You must be logged in to vote

@anna777x if you wanna modify the root element style. you can use CSS variable

.multi-select {
    --bb-multi-select-min-height: 35px;
    --bb-multi-select-max-height: 65px;
    --bb-multi-select-button-bg-color: rgba(var(--bs-body-color-rgb), .15);
    --bb-multi-select-button-hover-bg-color: rgba(var(--bs-body-color-rgb), .3);
    --bb-multi-select-item-margin-x: 3px;
    --bb-multi-select-item-margin-y: 3px;
    --bb-multi-select-item-padding: 2px 6px;
    --bb-multi-select-item-max-width: 130px;
}

you can find it on the following link

https://github.com/dotnetcore/BootstrapBlazor/blob/main/src/BootstrapBlazor/Components/Select/MultiSelect.razor.scss

the variable value will be transf…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@anna777x
Comment options

@ArgoZhang
Comment options

ArgoZhang May 22, 2024
Maintainer Author

Answer selected by ArgoZhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants