Skip to content

Commit

Permalink
fix(VSlider): render in forced-colors mode (#19706)
Browse files Browse the repository at this point in the history
fixes #19705

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
06b and johnleider committed May 7, 2024
1 parent 7c64392 commit 21e9f5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit 21e9f5e

Please sign in to comment.