-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
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.
@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/
src/Shape/Shape.js
Outdated
@@ -74,6 +75,7 @@ export default class Shape extends BaseClass { | |||
this._name = "Shape"; | |||
this._opacity = constant(1); | |||
this._pointerEvents = constant("visiblePainted"); | |||
this._role = "presentation"; |
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.
make the default value use the constant function: this._role = constant("presentation");
src/Shape/Shape.js
Outdated
@@ -44,6 +44,7 @@ export default class Shape extends BaseClass { | |||
return s * 3; | |||
} | |||
}; | |||
this._ariaLabel = ""; |
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.
make the default value use the constant function: this._ariaLabel = constant("");
Great, thanks!
…-Rashmi
On Fri, Jun 8, 2018 at 1:34 PM, Dave Landry ***@***.***> wrote:
***@***.**** requested changes on this pull request.
@rbaheti <https://github.com/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
<#78>) then the issue will
be automatically closed when I merge the PR 😎
https://help.github.com/articles/closing-issues-using-keywords/
------------------------------
In src/Shape/Shape.js
<#81 (comment)>:
> @@ -74,6 +75,7 @@ export default class Shape extends BaseClass {
this._name = "Shape";
this._opacity = constant(1);
this._pointerEvents = constant("visiblePainted");
+ this._role = "presentation";
make the default value use the constant function: this._role =
constant("presentation");
------------------------------
In src/Shape/Shape.js
<#81 (comment)>:
> @@ -44,6 +44,7 @@ export default class Shape extends BaseClass {
return s * 3;
}
};
+ this._ariaLabel = "";
make the default value use the constant function: this._ariaLabel =
constant("");
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJAu_OE0IuwLuuBgqFuh9LVki6qU7mEKks5t6rWOgaJpZM4Ugoj->
.
|
Description
aria-label #78:
closes add support for "aria-label" attributes #78
role #79 :
closes add support for "role" attribute #79
Types of changes
Checklist