Skip to content

Commit

Permalink
fix(VSlider): render in forced-colors mode
Browse files Browse the repository at this point in the history
  • Loading branch information
06b committed Apr 26, 2024
1 parent 2c726a5 commit 5d25c4c
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 @@ -34,6 +34,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 @@ -8,9 +8,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 @@ -21,6 +27,9 @@
.v-slider-track
border-radius: $slider-track-border-radius

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

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

0 comments on commit 5d25c4c

Please sign in to comment.