leva icon indicating copy to clipboard operation
leva copied to clipboard

Color alpha strings are bugged

Open StephenHaney opened this issue 1 year ago • 1 comments

RGBA string – color picker opens to default values, changing anything creates black/white/something new

Repro in the storybook, use "RgbaString" example

image


Hex8 string – does not trigger alpha controls at all

Reproducible in the storybook:

image

StephenHaney avatar Dec 09 '24 21:12 StephenHaney

Poking around a bit, the fixes are likely in or around this file: https://github.com/pmndrs/leva/blob/main/packages/leva/src/components/Color/color-plugin.ts

StephenHaney avatar Dec 09 '24 21:12 StephenHaney