Skip to content

Commit

Permalink
chore(slider): forced-color-adjusts go in forced-colors media query
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 authored and pfulton committed Nov 8, 2023
1 parent c1d119f commit f070c71
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions components/slider/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ governing permissions and limitations under the License.

&::before {
box-shadow: 0 0 0 var(--spectrum-focus-indicator-thickness) var(--highcontrast-slider-handle-focus-ring-color-key-focus, var(--mod-slider-handle-focus-ring-color-key-focus, var(--spectrum-slider-handle-focus-ring-color-key-focus)));
forced-color-adjust: none;
}
}

Expand All @@ -594,8 +593,6 @@ governing permissions and limitations under the License.
.spectrum-Slider-handle {
box-shadow: 0 0 0 var(--spectrum-slider-handle-gap) var(--highcontrast-slider-ramp-handle-border-color-active, var(--mod-sectrum-slider-ramp-handle-border-color-active, var(--spectrum-slider-ramp-handle-border-color-active)));
background: var(--mod-slider-ramp-handle-background-color, var(--highcontrast-slider-ramp-handle-background-color, var(--spectrum-slider-ramp-handle-background-color)));
/* forced-color-adjust required to ensure the "circle" around the handle is transparent */
forced-color-adjust: none;
}
}

Expand Down Expand Up @@ -736,6 +733,15 @@ governing permissions and limitations under the License.

--spectrum-slider-ramp-handle-border-color-active: ButtonText;

.spectrum-Slider-handle.is-focused::before {
forced-color-adjust: none;
}

.spectrum-Slider--ramp .spectrum-Slider-handle {
/* forced-color-adjust required to ensure the "circle" around the handle is transparent */
forced-color-adjust: none;
}

/* Slider control hover and focus colors for high contrast mode */
&:not(.is-disabled) {
.spectrum-Slider-controls:hover,
Expand Down

0 comments on commit f070c71

Please sign in to comment.