Skip to content

Commit 6fb889d

Browse files
authored
fix(VListItem): allow default color to change when inactive (#13719)
Fixes #9285
1 parent 24af61e commit 6fb889d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/vuetify/src/components/VList/VListItem.sass

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
color: map-deep-get($material, 'text', 'disabled')
77

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

1111
.v-list-item__mask
1212
color: map-deep-get($material, 'text', 'disabled')
@@ -264,3 +264,4 @@
264264
-webkit-line-clamp: 2
265265
-webkit-box-orient: vertical
266266
display: -webkit-box
267+

packages/vuetify/src/components/VList/VListItem.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ export default baseMixins.extend<options>().extend({
182182
})
183183
: this.$slots.default
184184

185-
return h(tag, this.setTextColor(this.color, data), children)
185+
return h(tag, this.isActive ? this.setTextColor(this.color, data) : data, children)
186186
},
187187
})

0 commit comments

Comments
 (0)