Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color alpha strings are bugged #523

Open
StephenHaney opened this issue Dec 9, 2024 · 1 comment
Open

Color alpha strings are bugged #523

StephenHaney opened this issue Dec 9, 2024 · 1 comment

Comments

@StephenHaney
Copy link

StephenHaney commented Dec 9, 2024

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 StephenHaney changed the title hex8 is not triggering alpha in color picker Color alpha handling is bugged Dec 9, 2024
@StephenHaney StephenHaney changed the title Color alpha handling is bugged Color alpha strings are bugged Dec 9, 2024
@StephenHaney
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant