-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replaces star pngs w/ font awesome stars #2
base: poly-rater
Are you sure you want to change the base?
Conversation
* Add new temporary StarsIconBuilder that sets stars as font awesome icons * Use temp StarsIconBuilder in ratings_for helper * Remove generating unneeded star png and css styles using star png for background
* Add stimulus controller to template * Add data attributes needed for stimulus controller to ratings_tag and star_icon * Add comment that hover styling class needs to be defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few minor things
Missed that before review, so you can disregard those comments |
* Remove CssBuiilder, StarsBuilder and to references them * Remove unneeded pngs of stars * Remove unneeded commented out code
* Remove :small option since it is not used or applicable
@fschwahn should I update the changelog? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fschwahn should I update the changelog?
Ah yes, why not
* Use @show_value from stars_builder in locale when value is not given * Move icon_options into link_star_tag and pass to star_icon, since those options are only needed if link is on star icon
* js: Missing semicolon & dangling underscore * scss: fix properties order
* Add ability to extend data-action with other actions outside of the gem * Add ability to choose if star controller should be included in wrapper or somewhere else not defined by gem
…ntroller" This reverts commit ad6b8d9.
* Remove star controller from ui element since controller needs to be defined in parent element of ratings_for helper in app * Refactor icon_options to helper method to be used outside of the gem
To Do:
This PR introduces the following changes:
Example from prestage (ignore ban sign):
star_rating_vid.mp4