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

Add title attribute to all buttons #126

Merged
merged 3 commits into from
May 16, 2018
Merged

Conversation

amitmbee
Copy link
Contributor

@@ -164,7 +164,12 @@ export class Popup extends React.Component<POPUP_PROPS & DispatchProps, {}> {
</svg>
<span>INTERCEPTOR</span>
</a>
<button type="button" onClick={this.handleClick} className={buttonClass}>
<button
title="Start/Stop Listening to Requests"
Copy link
Contributor

Choose a reason for hiding this comment

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

can be conditionally set either start or stop.

<button type="button" onClick={this.handleClick} className={buttonClass}>
{this.props.enabled ? "Stop Listening" : "Start Listening"}
<button
title={enabled ? "Stop Listening to Requests" : "Start Listening to Requests"}
Copy link
Contributor

Choose a reason for hiding this comment

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

use props.enabled to make it consistent across the component. No need for enabled as separate const.

@revathskumar revathskumar merged commit 83c9f3f into master May 16, 2018
@revathskumar revathskumar deleted the Add-title-attr-buttons branch May 16, 2018 07:03
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.

2 participants