Skip to content

Commit 8813236

Browse files
fix(react-color-picker): ColorSlider hue gradient (#33785)
1 parent dc55108 commit 8813236

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: design changes for ColorPicker",
4+
"packageName": "@fluentui/react-color-picker-preview",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-color-picker-preview/library/src/components/ColorArea/useColorAreaStyles.styles.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ const useRootStyles = makeResetStyles({
3737
alignItems: 'start',
3838
justifyItems: 'start',
3939
[thumbSizeVar]: '20px',
40-
minWidth: '200px',
41-
minHeight: '200px',
40+
minWidth: '300px',
41+
minHeight: '300px',
42+
boxSizing: 'border-box',
4243
[innerThumbRadiusVar]: '6px',
4344
});
4445

packages/react-components/react-color-picker-preview/library/src/components/ColorSlider/useColorSliderStyles.styles.ts

+7-11
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,13 @@ const thumbPositionVar = `--fui-Slider__thumb--position`;
2424

2525
const hueBackground = `linear-gradient(${[
2626
`var(${colorSliderCSSVars.sliderDirectionVar})`,
27-
'red 0',
28-
'#f09 10%',
29-
'#cd00ff 20%',
30-
'#3200ff 30%',
31-
'#06f 40%',
32-
'#00fffd 50%',
33-
'#0f6 60%',
34-
'#35ff00 70%',
35-
'#cdff00 80%',
36-
'#f90 90%',
37-
'red 100%',
27+
'red',
28+
'fuchsia',
29+
'blue',
30+
'aqua',
31+
'lime',
32+
'yellow',
33+
'red',
3834
].join(',')})`;
3935

4036
/**

0 commit comments

Comments
 (0)