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

Colors with opacity are not working #42

Open
sorasful opened this issue Sep 30, 2024 · 0 comments
Open

Colors with opacity are not working #42

sorasful opened this issue Sep 30, 2024 · 0 comments

Comments

@sorasful
Copy link

Hi there !

I noticed a behavior that is not supported actually, and I think this could be a great addition to this library.
It's the opacity, for now it's not supported, at least in the thresholds :

<ProgressBar
                            series={[$matchPercentage]} height="{20}" color="#5AB6DF" style={"default"} textSize={130}
                            thresholds={[
                            { till: 30, color: '#FF4D4D66' },
                            { till: 60, color: '#FFBD4466' },
                            { till: 85, color: '#76E63566' },
                            { till: 100, color: '#53D50566' },
                        ]}
                    />

And here is the error :

image

Thanks !

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