I am working with Vuetify library and I am trying to overwrite properties of v-select once the user makes a selection, namely change the color of the border, color of text and color of the down icon. Here's the code for my v-select component.
<v-select
:items="items"
:label="$t('select.label.all')"
:menu-props="{ offsetY: true }"
multiple
rounded
solo
:style="getSelectedStyle.style"
@change="onChange"
></v-select>
on getSelectedStyle, I check whether anything is selected and try to OVERRIDE the following styles in the computer method:
getSelectedStyle() {
let result = {
style: '',
};
if(this.selectedSkills){
result.style = `
.v-text-field.v-text-field--solo .v-input__control {
border: 1px solid #3E82F1 !important;
};
i.v-icon.v-icon {
color: #3E82F1 !important;
};
.v-select__selection--comma,
.v-select.v-text-field input {
color: #3E82F1 !important;
}
`;
return result;
},
},
Unfortunately, the style OVERRIDE using the computed method doesn't work. Any ideas?