Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Select2 Multi-select Result CSS

Viewing 5 posts - 1 through 5 (of 5 total)
  • Michael McElwee
    #113207

    Hi Trevor

    I’m trying to style the results of the Select2 Multi-select. Have tried a number of variations from simple to complex with no result.

    li.select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #F58634;
        border-radius: 0;
    }
    
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #F58634;
        border-radius: 0;
    }
    
    .select2-container--default .select2-results__option[aria-selected=true] {
        background-color: #F58634;
        border-radius: 0;
    }

    I’ve tried changing it directly in the search-fitler.min.css file as well.

    Suggestions? They are Comboboxes as well, but wouldn’t think that would influence it, would it?

    Thanks
    Mike

    Trevor Moderator
    #113233

    Hi

    Can you show me the page/link/URL where the search form with the above CSS is to be applied?

    Michael McElwee
    #113258
    This reply has been marked as private.
    Trevor Moderator
    #113296

    Can you try with this added specificity (your theme seems to be setting the color):

    .searchandfilter select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #F58634;
        border-radius: 0;
    }
    .searchandfilter .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #F58634;
        border-radius: 0;
    }
    .searchandfilter .select2-container--default .select2-results__option[aria-selected=true] {
        background-color: #F58634;
        border-radius: 0;
    }
    Michael McElwee
    #113310

    .searchandfilter .select2-container–default .select2-selection–multiple .select2-selection__choice {
    background-color: #F58634;
    border-radius: 0;
    }

    Works perfectly – thanks = resolved

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Select2 Multi-select Result CSS’ is closed to new replies.