Search code examples
vue.jsvuejs2vuetify.jsvuejs3v-autocomplete

Text-color for v-autocomplete


I have a v-autocomplete that only displays after I click on a loop button in my navbar.
My application is supposed to allow the search on actors. I have a placeholder on this autocomplete and I'd like to style the appearance of it.
At the moment it is black and in regular font, I'd like it white in italic but since I can't inspect the element I can't know which class to edit in the css.

Here's my code:

<template>
  <div class="inspire">
    <v-app-bar style="padding: 10px 0px;"
      color="rgba(33,33,33,255)" 
      elevation="0" 
      height="64px"
    >
      <div style="width:100%" v-if="$route.name == 'Mapping'">
        <template>
          <v-autocomplete
            v-model="valuesActor"
            placeholder="Search on actors"
            :items="actorArray"
            :search-input.sync="searchActor"
            filled
            autofocus
            mutliple
            @blur="toggleSearch"
            background-color="#313131"
            append-icon=""
            prepend-inner-icon="mdi-arrow-left"
            color="var(--textLightGrey)"
            :menu-props="{maxWidth: 1600}"
          >
          </v-autocomplete>
        </template>
      </div>  
    </v-app-bar>
  </div>
</template>

Solution

  • You can style it like this-

    <style scoped>
    >>> ::placeholder {
        color: white !important;
        font-style: italic !important;
    }
    </style>