Skip to content

Commit

Permalink
fix(VListItem): display color when in list
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwu9145 committed Feb 26, 2023
1 parent 978e228 commit 686cc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VList/VListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const VListItem = genericComponent<VListItemSlots>()({

useRender(() => {
const Tag = isLink.value ? 'a' : props.tag
const hasColor = !list || isSelected.value || isActive.value
const hasColor = (list && (!isSelected.value || isActive.value)) || !list || isSelected.value || isActive.value
const hasTitle = (slots.title || props.title)
const hasSubtitle = (slots.subtitle || props.subtitle)
const hasAppend = !!(slots.append || props.appendAvatar || props.appendIcon)
Expand Down

0 comments on commit 686cc29

Please sign in to comment.