Skip to content

v-autocomplete dropdown menu/v-list/v-list item colors #21236

Closed Answered by J-Sek
Steve-Groner asked this question in General
Discussion options

You must be logged in to vote

:list-props="{ bgColor: 'purple' }" example will soon be included on the documentation for VSelect (#21658).

Alternative ways:

  • :menu-props='{ contentClass: 'my-dropdown' } let's you target specific class so your global CSS rules can target precisely the component you wish to customize
  • with attach prop you can change teleport target so your :deep(...) rules will reach the menu content, but there are some consequences and I don't recommend it unless you are forced to

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by J-Sek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants