Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VSlider): render in forced-colors mode #19706

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions packages/vuetify/src/components/VSlider/VSliderThumb.sass
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
user-select: none
background-color: currentColor

@media (forced-colors: active)
background-color: highlight

&::before
transition: 0.3s settings.$standard-easing
content: ''
Expand Down
9 changes: 9 additions & 0 deletions packages/vuetify/src/components/VSlider/VSliderTrack.sass
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@
.v-slider-track__background
background-color: rgb(var(--v-theme-surface-variant))

@media (forced-colors: active)
background-color: highlight

.v-slider-track__fill
background-color: rgb(var(--v-theme-surface-variant))

@media (forced-colors: active)
background-color: highlight

.v-slider-track__tick
background-color: rgb(var(--v-theme-surface-variant))

Expand All @@ -22,6 +28,9 @@
.v-slider-track
border-radius: $slider-track-border-radius

@media (forced-colors: active)
border: thin solid buttontext

.v-slider-track
&__background, &__fill
position: absolute
Expand Down
Loading