Skip to content

Commit

Permalink
fix(VColorPicker): correct value gradient
Browse files Browse the repository at this point in the history
fixes #19187
  • Loading branch information
KaelWD committed Feb 7, 2024
1 parent 1f63ca8 commit d1251f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const VColorPickerCanvas = defineComponent({
ctx.fillRect(0, 0, canvas.width, canvas.height)

const valueGradient = ctx.createLinearGradient(0, 0, 0, canvas.height)
valueGradient.addColorStop(0, 'hsla(0, 0%, 100%, 0)') // transparent
valueGradient.addColorStop(0, 'hsla(0, 0%, 0%, 0)') // transparent
valueGradient.addColorStop(1, 'hsla(0, 0%, 0%, 1)') // black
ctx.fillStyle = valueGradient
ctx.fillRect(0, 0, canvas.width, canvas.height)
Expand Down

0 comments on commit d1251f5

Please sign in to comment.