Skip to content

Commit

Permalink
fix(VListItem): allow default color to change when inactive (#13719)
Browse files Browse the repository at this point in the history
Fixes #9285
  • Loading branch information
Tofandel authored Jul 19, 2021
1 parent 24af61e commit 6fb889d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/vuetify/src/components/VList/VListItem.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
color: map-deep-get($material, 'text', 'disabled')

&:not(.v-list-item--active):not(.v-list-item--disabled)
color: map-deep-get($material, 'text', 'primary') !important
color: map-deep-get($material, 'text', 'primary')

.v-list-item__mask
color: map-deep-get($material, 'text', 'disabled')
Expand Down Expand Up @@ -264,3 +264,4 @@
-webkit-line-clamp: 2
-webkit-box-orient: vertical
display: -webkit-box

2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VList/VListItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ export default baseMixins.extend<options>().extend({
})
: this.$slots.default

return h(tag, this.setTextColor(this.color, data), children)
return h(tag, this.isActive ? this.setTextColor(this.color, data) : data, children)
},
})

0 comments on commit 6fb889d

Please sign in to comment.