Skip to content
Discussion options

You must be logged in to vote

I was able to do it, here the steps:

  1. Create file public/css/backpack-custom.css
  2. Add you CSS code:
.select2-container--bootstrap .select2-results__option[aria-selected=true]{
    background-color: red!important;
    color: #262626!important;
}

.select2-container--bootstrap .select2-results__option {
    padding: 6px 12px;
    margin-bottom: 1px;
}
  1. In config/backpack/theme-tabler.php add the custom css file to styles:
'styles' => [
        base_path('vendor/backpack/theme-tabler/resources/assets/css/color-adjustments.css'),
        base_path('vendor/backpack/theme-tabler/resources/assets/css/colors.css'),
        'css/backpack-custom.css',
    ],

Here the result

Cheers.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@avinashtelsa
Comment options

Comment options

You must be logged in to vote
1 reply
@avinashtelsa
Comment options

Comment options

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

@pxpm
Comment options

pxpm Apr 12, 2024
Maintainer

Answer selected by avinashtelsa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants