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

Is there a way to give half starts ? #12

Open
abhilashdonepudi opened this issue Sep 4, 2020 · 1 comment
Open

Is there a way to give half starts ? #12

abhilashdonepudi opened this issue Sep 4, 2020 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@abhilashdonepudi
Copy link

The component is rounding to the nearest start. Any way to create a half star ? Any plans to offer that ?

@popcorn245
Copy link
Contributor

Sorry for my non-existent reply @abhilashdonepudi , life got away from me here. To answer your question, I hadn't planned on it, but I have started to take a crack at it just for you. The basic approach I was going to take was have a prop for halves and if it's true then I just apply a special class so I can make half-stars instead of stars and then I would double the number of inputs created and TADA! The tricky part is the logic for alternating the star halves, maybe a CSS transform on odd elements.. 🤔

@popcorn245 popcorn245 self-assigned this Jun 17, 2021
@popcorn245 popcorn245 added the good first issue Good for newcomers label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

2 participants