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

Rating component #139

Merged
merged 63 commits into from
Mar 15, 2022
Merged

Rating component #139

merged 63 commits into from
Mar 15, 2022

Conversation

rkaraivanov
Copy link
Member

@rkaraivanov rkaraivanov commented Nov 18, 2021

Closes #4 #189

Added attributes needed for ARIA and standard form handling
Component is following new export package structure
* Selecting the same value will reset the rating
* Rated/unrated symbols accept a callback function that can
resolve the symbol for the appropriate position
* Added event on hover which returns the current "active" index
@rkaraivanov rkaraivanov marked this pull request as ready for review December 21, 2021 09:18
src/components/rating/rating.spec.ts Outdated Show resolved Hide resolved
src/components/rating/rating.spec.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@DiyanDimitrov DiyanDimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may consider adding a property to highlight only the selected item similar to this, but it is not necessarily a v1 feature.

src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/rating/rating.ts Outdated Show resolved Hide resolved
src/components/common/decorators/watch.ts Outdated Show resolved Hide resolved
DiyanDimitrov
DiyanDimitrov previously approved these changes Mar 14, 2022
DiyanDimitrov
DiyanDimitrov previously approved these changes Mar 14, 2022
@DiyanDimitrov DiyanDimitrov self-assigned this Mar 14, 2022
@ChronosSF ChronosSF merged commit af4c67e into master Mar 15, 2022
@ChronosSF ChronosSF deleted the rkaraivanov/rating branch March 15, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rating component Rating component
8 participants