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

Adding jsx-a11y linter rules #1952

Merged
merged 13 commits into from
Jun 4, 2019
Merged

Adding jsx-a11y linter rules #1952

merged 13 commits into from
Jun 4, 2019

Conversation

bhavyarm
Copy link
Contributor

@bhavyarm
Copy link
Contributor Author

@thompsongl
Copy link
Contributor

@bhavyarm @snide Is the idea with this PR that EUI folks will push commits directly to this branch?

@snide
Copy link
Contributor

snide commented May 29, 2019 via email

@thompsongl
Copy link
Contributor

Sounds good!

Copy link
Contributor

@snide snide left a 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,
Copy link
Contributor

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.

Copy link
Contributor

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.

@bhavyarm
Copy link
Contributor Author

Thank you very very much @thompsongl

@thompsongl
Copy link
Contributor

thompsongl commented May 31, 2019

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
Copy link
Contributor

Choose a reason for hiding this comment

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

See #1917

@thompsongl
Copy link
Contributor

@snide mind taking another look at this? There's been a few additions since your review

Copy link
Contributor

@snide snide left a 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.

@thompsongl
Copy link
Contributor

jenkins test this

@thompsongl thompsongl merged commit 85b8d85 into elastic:master Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants