BioPhoton / BioPhoton/css-star-rating
Extend half stars styling
- Dominant language
- SCSS
- Stars
- 69
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
We need a way to cut the star to a certain width.
At the moment I use 3 different icons for full, half and empty stars.
Some possible implementations:
- cut single star at width [n]%
- render 2 separate star ratings on top of each other and cut the whole star rating at width [n]%
- here an idea of @ivanblazevic in a [codepen](https://github.com/BioPhoton/angular-star-rating/issues/79#issuecomment-379268548)
here a method with [CSS Paint API](https://vitaliy-bobrov.github.io/css-paint-demos/star-rating/)
Contributor guide
Research direction
Start by reviewing how the current full, half, and empty stars are styled and how a star rating's width is represented. Compare the proposed single-star and layered-rating approaches, then confirm that the finished styling supports an arbitrary percentage cut and preserves the existing rating states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scss
- Domain
- design, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100