-
Notifications
You must be signed in to change notification settings - Fork 842
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
Adding jsx-a11y linter rules #1952
Conversation
Yep. Figure we can take it over the line
…On Tue, May 28, 2019, 4:04 PM Greg Thompson ***@***.***> wrote:
@bhavyarm <https://github.com/bhavyarm> @snide <https://github.com/snide>
Is the idea with this PR that EUI folks will push commits directly to this
branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1952?email_source=notifications&email_token=AACPHJ5AXIZXDLEZY7MLP6DPXW275A5CNFSM4HOV6EOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNV7OQ#issuecomment-496721850>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACPHJ3DI7J3LUDAEEOFTP3PXW275ANCNFSM4HOV6EOA>
.
|
Sounds good! |
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.
Needs a CL. I checked the aria labeling and reviewed how the comment disabling works. Thanks!
@@ -56,7 +58,7 @@ EuiCopy.propTypes = { | |||
/** | |||
* Tooltip message displayed before copy function is called. | |||
*/ | |||
beforeMessage: PropTypes.string, | |||
beforeMessage: PropTypes.node, |
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 sure to list this in the CL I guess.
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.
Ah yeah I meant to comment here. Reason for this is that we put WCAG level badges inside the tooltip for color copying, which is absolutely reasonable but results in prop type warnings.
Thank you very very much @thompsongl |
A couple more changes incoming. I guess the tslint -> eslint migration stirred up some things. |
@@ -522,6 +522,8 @@ export class EuiIcon extends Component<Props, State> { | |||
if (typeof icon === 'string') { | |||
return ( | |||
<img | |||
// TODO: Allow alt prop |
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.
See #1917
@snide mind taking another look at this? There's been a few additions since your review |
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.
Checked the last few commits. This still looks good.
jenkins test this |
Adding jsx-a11y linter rules: https://www.npmjs.com/package/eslint-plugin-jsx-a11y