Skip to content

Commit

Permalink
nextstrain#1055: lint fix - make sure label has a for attribute tying…
Browse files Browse the repository at this point in the history
… it to each button
  • Loading branch information
frogsquire committed Apr 17, 2020
1 parent 2138543 commit 26c6561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/download/downloadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ class DownloadModal extends React.Component {
{buttons.map((data) => (
<div key={data[0]} onClick={data[3]} style={{cursor: 'pointer' }}>
{data[2]}
<button style={buttonTextStyle}>
<button style={buttonTextStyle} name={data[0]}>
{data[0]}
</button>
<div style={{ display: "inline-block", height: "30px", verticalAlign: "top", paddingTop: "6px" }}>
<label style={buttonLabelStyle}>{data[1]}</label>
<label style={buttonLabelStyle} htmlFor={data[0]}>{data[1]}</label>
</div>
</div>
))}
Expand Down

0 comments on commit 26c6561

Please sign in to comment.