-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Lint fixes: Reader-related blocks #25212
Conversation
@@ -37,20 +37,6 @@ class PostCommentForm extends Component { | |||
} ); | |||
} | |||
|
|||
componentDidUpdate() { |
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.
Seems to be redundant - this.refs.commentText
no longer exists.
@@ -43,20 +43,6 @@ class PostCommentForm extends React.Component { | |||
} ); | |||
} | |||
|
|||
componentDidUpdate() { |
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.
Seems to be redundant - this.refs.commentText
no longer exists.
<div | ||
className="conversation-caterpillar__gravatars" | ||
onClick={ this.handleTickle } | ||
aria-hidden="true" |
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.
does this mean screen readers won't see the 🐛 as clickable?
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.
The linter doesn't like non-interactive elements with an onClick
, but I think a useful bonus to be able to expand the caterpillar by clicking the gravatars so I wanted to keep that behaviour. On balance I thought the best option was to hide just the gravatar images from assistive devices, since the "Load previous comments..." button will be available to do the expansion (it's a button
element):
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.
LGTM, thanks!
Part of #24504.
Address linting issues in client/blocks related to Reader.
No functional changes.