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

feat(rating): add aria-label attribute and rating config #5607

Merged

Conversation

IraErshova
Copy link
Contributor

@IraErshova IraErshova commented Jan 21, 2020

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.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@codecov
Copy link

codecov bot commented Jan 21, 2020

Codecov Report

Merging #5607 into development will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0e7c1b...bedf4be. Read the comment docs.

daniloff200
daniloff200 previously approved these changes Jan 21, 2020
Copy link
Member

@valorkin valorkin left a 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

@@ -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';
Copy link
Member

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

Copy link
Contributor Author

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?

@valorkin valorkin changed the title fix(rating): add aria-label attribute feat(rating): add aria-label attribute Jan 23, 2020
@valorkin valorkin changed the title feat(rating): add aria-label attribute feat(rating): add aria-label attribute and rating config Jan 23, 2020
@IraErshova IraErshova force-pushed the fix-rating-add-aria-label branch from 7fcfe50 to 6a84444 Compare January 24, 2020 09:22
Add aria label attribute
Add RatingConfig class

Close valor-software#5579
@IraErshova IraErshova force-pushed the fix-rating-add-aria-label branch from 6a84444 to f0e7c1b Compare January 24, 2020 09:52
Copy link
Member

@valorkin valorkin left a 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

@dmitry-zhemchugov
Copy link
Contributor

Tested, Ready to merge

@daniloff200 daniloff200 merged commit 5d505ea into valor-software:development Jan 24, 2020
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 missing aria-label
4 participants