Skip to content

Commit c29d368

Browse files
author
Jade Pennig
committed
fix(color-picker-slider-focus): add focus state to color picker slider thumb
[Finishes #W-4172014]
1 parent dd85217 commit c29d368

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

ui/components/color-picker/base/_index.scss

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@
231231
$color-stops
232232
);
233233

234-
&:focus {
235-
outline: none;
236-
}
237-
238234
@mixin thumb-styles {
239235
appearance: none;
240236
cursor: pointer;
@@ -245,6 +241,11 @@
245241
background: $color-picker-slider-thumb-color-background;
246242
}
247243

244+
@mixin thumb-styles-focus {
245+
border-color: $color-border-input-active;
246+
box-shadow: $shadow-button-focus;
247+
}
248+
248249
&::-webkit-slider-thumb {
249250
@include thumb-styles;
250251
}
@@ -258,6 +259,22 @@
258259
height: $color-picker-slider-height;
259260
}
260261

262+
&:focus {
263+
outline: none;
264+
265+
&::-webkit-slider-thumb {
266+
@include thumb-styles-focus;
267+
}
268+
269+
&::-moz-range-thumb {
270+
@include thumb-styles-focus;
271+
}
272+
273+
&::-ms-thumb {
274+
@include thumb-styles-focus;
275+
}
276+
}
277+
261278
&::-moz-range-track {
262279
height: 0;
263280
}

0 commit comments

Comments
 (0)