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

When custom icon used the fill fills the entire block #167

Open
Terceramayor opened this issue Oct 21, 2021 · 2 comments
Open

When custom icon used the fill fills the entire block #167

Terceramayor opened this issue Oct 21, 2021 · 2 comments

Comments

@Terceramayor
Copy link

When using a custom png icon, the rating color doesn't just fill the inside of the icon but the entire icon block:

<Rating type="custom" ratingImage={starIcon} ratingColor={'rgb(200,0,200)'} ratingCount={5} imageSize={16} showRating={false} tintColor={'rgb(0,100,200)'} readonly={false} startingValue={1.35} />

image

@lukasgjetting
Copy link

Just faced this issue as well...

Issue is the default star icon is actually a yellow outline, transparent content and white background outside.

So you need to add a white background to your image.

star

@rajpootathar
Copy link

I am also facing this

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

3 participants