-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(rating): add aria-label attribute and rating config #5607
feat(rating): add aria-label attribute and rating config #5607
Conversation
Codecov Report
@@ Coverage Diff @@
## development #5607 +/- ##
============================================
Coverage 52.52% 52.52%
============================================
Files 3 3
Lines 99 99
Branches 17 17
============================================
Hits 52 52
Misses 37 37
Partials 10 10 Continue to review full report at Codecov.
|
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.
todo: add config to rating component
src/rating/rating.component.ts
Outdated
@@ -30,6 +30,8 @@ export class RatingComponent implements ControlValueAccessor, OnInit { | |||
@Input() readonly: boolean; | |||
/** array of icons titles, default: (["one", "two", "three", "four", "five"]) */ | |||
@Input() titles: string[]; | |||
/** custom aria label, default "rating" */ | |||
@Input() ariaLabel = 'rating'; |
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.
please set it via config
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.
@valorkin I've added Config functionality, could you please re-check my PR?
7fcfe50
to
6a84444
Compare
Add aria label attribute Add RatingConfig class Close valor-software#5579
6a84444
to
f0e7c1b
Compare
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 great to me
Tested, Ready to merge |
Add aria label attribute
Close #5579
PR Checklist
Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.