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

Editable (with half-stars) Not Working #58

Open
prabhatmishra33 opened this issue Jan 26, 2019 · 1 comment
Open

Editable (with half-stars) Not Working #58

prabhatmishra33 opened this issue Jan 26, 2019 · 1 comment

Comments

@prabhatmishra33
Copy link

Hi,
while using this npm module for ratings the half star feature is not working ,It's not showing any stars.
I just copied the below code :

renderStarIcon={(index, value) => { return ( <span> <i className={index <= value ? 'fas fa-star' : 'far fa-star'} /> </span> ); }} renderStarIconHalf={() => { return ( <span> <span style={{position: 'absolute'}}><i className="far fa-star" /></span> <span><i className="fas fa-star-half" /></span> </span> ); }} />

React Version Installed:16.7.0
npm version : 6.4.1

Thanks,
Prabhat

@xxcheckmatexx
Copy link

Have you included fontawesome styles?

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

2 participants