-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Rating: more icons types #2068
Comments
TL;DR - not readily available. It requires an update to the CSS and markup at https://github.com/Semantic-Org/Semantic-UI. More Context The CSS for the Rating icon is quite different than it is for regular Icons. This includes having multiple states and border colors. Also, there is predefined colors for each. The heart is red, the star is gold. We may be able to pull this off by taking in a color name and an Icon name and generating the icons manually on our end. I would be interested in a PR exploring this idea. Would you like to contribute? |
@levithomason Yes, I'd like to contribute to this feature ! |
@dbrrt do you still have plans for this? |
@layershifter I do, but I didn't find time to work on this feature until now, I'll have a look ASAP on it. I don't get why in examples, when I replace Any information will be appreciated :) |
They come from the CSS. Specifically, the You can find unicode values for icon names by looking at the Have a look at my previous comment in light of this one. This is why we may be able to pull this off but not for sure. Rating icon CSS is special cased for ratings. Regular icon CSS doesn't provide all the states needed. |
Ok I got it, so to implement new rating icons, it has to be implemented on the SUI-CSS repo first... |
Closing until this will be not implimented in the main repo. |
Would it be possible to have more icons for the Rating component, for instance
money
for a budget rating?The text was updated successfully, but these errors were encountered: