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

Added support for aria-label #78 and role #79 attributes. #81

Merged
merged 2 commits into from
Jun 11, 2018

Conversation

rbaheti
Copy link
Contributor

@rbaheti rbaheti commented Jun 8, 2018

Description

aria-label #78:

role #79 :

  • assigned default value in the constructor
  • assigned aria-label attribute to this._enter variable
  • created a user-accessible method, role, to change the value
    closes add support for "role" attribute #79

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have documented all new methods.
  • I have written tests for all new methods/functionality.
  • I have written examples for all new methods/functionality.

Copy link
Member

@davelandry davelandry left a comment

Choose a reason for hiding this comment

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

@rbaheti this looks great! only 2 minor comments to be addressed.

also, in the main body of this PR, if you edit the text so that the word "closes" appears before the issue numbers (ie. closes #78) then the issue will be automatically closed when I merge the PR 😎

https://help.github.com/articles/closing-issues-using-keywords/

@@ -74,6 +75,7 @@ export default class Shape extends BaseClass {
this._name = "Shape";
this._opacity = constant(1);
this._pointerEvents = constant("visiblePainted");
this._role = "presentation";
Copy link
Member

Choose a reason for hiding this comment

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

make the default value use the constant function: this._role = constant("presentation");

@@ -44,6 +44,7 @@ export default class Shape extends BaseClass {
return s * 3;
}
};
this._ariaLabel = "";
Copy link
Member

Choose a reason for hiding this comment

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

make the default value use the constant function: this._ariaLabel = constant("");

@rbaheti
Copy link
Contributor Author

rbaheti commented Jun 8, 2018 via email

@davelandry davelandry merged commit a98b611 into master Jun 11, 2018
@davelandry davelandry deleted the aria-lable#78-role#79 branch June 11, 2018 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for "role" attribute add support for "aria-label" attributes
2 participants