Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions packages/vuetify/src/components/VList/VListItem.sass
Original file line number Diff line number Diff line change
Expand Up @@ -341,24 +341,35 @@

@media (forced-colors: active)
.v-list-item
&:not(&--active)
&--link:not(&--active)
color: buttontext

&--link[href]:not(&--active)
color: unset

&--variant-text.v-list-item--active,
&--variant-plain.v-list-item--active
color: highlight !important

&:not(&--variant-plain).v-list-item--active
.v-list-item-title,
.v-list-item-subtitle,
.v-list-item-action
Comment on lines +354 to +356
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking at the example markup from the description with a small change to use to instead of href and have one of the links / (matching current page). The icon was still yellow instead of cyan. It can be fixed by adding .v-icon to this list.

BTW. Do you remember how I could further adjust the demo to verify those other classes are needed here? Just want to verify those are necessary, as they stand out a bit.

color: highlight !important

&--active:not(&--variant-text, &--variant-plain)
background-color: highlight !important
color: highlighttext !important

&-title
forced-color-adjust: preserve-parent-color

&--active
.v-list-item-title,
.v-list-item-subtitle
opacity: 1
forced-color-adjust: preserve-parent-color

.v-list-item__prepend,
.v-list-item__append
> .v-badge .v-icon,
> .v-icon
opacity: 1
forced-color-adjust: preserve-parent-color

@supports selector(:focus-visible)
Expand Down