Replies: 1 comment 5 replies
-
There was an attempt to do it a while back, but it was rejected and never made it to the roadmap, it looks like. 😞 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
While using the Rating component, I observed that the behaviour for non-integers is to simply truncate any decimal points. For example, ratings of 4.2, 4.5, and 4.9 will all be shown as four stars.
I propose we add support to display half stars. This can be activated with an optional boolean property that defaults to false so that existing behaviour is preserved (similar to
readonly
).We should also add
halficon
(or similar) support into the template/slots.We may also wish to add some sort of rounding behaviour, which would either apply when activating half stars, or could be another new property.
Excluded:
readonly
mode? Otherwise the behaviour may be a little weird (see a half star, choose a different value, be unable to get the original value back).I can make these changes - I just wanted to check for existing thoughts/previous attempts/suggestions/best practices/advice/etc
All thoughts/feelings/hopes/dreams are welcome.
Cheers,
James
Beta Was this translation helpful? Give feedback.
All reactions