Skip to content

Commit 1c76c7e

Browse files
committed
[bugfix] - range styles were not specific enough to the color-picker
1 parent b8b23f6 commit 1c76c7e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: src/styles/_picker.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
transition: opacity .15s, transform .15s;
3030
transition-timing-function: ease-out;
3131

32-
&__hue{
32+
&__hue.range{
3333
grid-area: hue;
3434
--fill-color: linear-gradient(to right, red 0%, #ff0 16.6%, lime 33.3%, cyan 50%, blue 66.6%, #f0f 83.3%, red 100%);
3535
}
3636

37-
&__saturation{
37+
&__saturation.range{
3838
grid-area: saturation;
3939
--fill-color: linear-gradient(to right, white, hsl(var(--hue),var(--s), 50%));
4040
}
4141

42-
&__lightness{
42+
&__lightness.range{
4343
grid-area: lightness;
4444
--c: hsl(var(--hue), var(--s), 50%);
4545
--fill-color: linear-gradient(to right, black, var(--c), white);
4646
}
4747

48-
&__alpha{
48+
&__alpha.range{
4949
grid-area: alpha;
5050
--checkboard-size: calc(var(--track-height)/2);
5151
--fill-color: linear-gradient(to right, transparent, hsl(var(--hue), var(--s), var(--l))),

Diff for: src/styles/_range.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.range {
1+
.color-picker .range {
22
--tickEvery: 400;
33
--primaryColor: #000;
44
--progress-color: transparent;

0 commit comments

Comments
 (0)