Skip to content

Commit

Permalink
Turn on 'jsx-a11y/label-has-for' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jan 25, 2017
1 parent c11d1eb commit d3ebb39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"jsx-a11y/label-has-for": "off",
"max-len": "off",
"no-param-reassign": "off",
"object-curly-spacing": "off",
Expand Down
10 changes: 6 additions & 4 deletions examples/02 Drag Around/Custom Drag Layer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ export default class DragAroundCustomDragLayer extends Component {
<Container snapToGrid={snapToGridAfterDrop} />
<CustomDragLayer snapToGrid={snapToGridWhileDragging} />
<p>
<label>
<input type='checkbox'
<label htmlFor='snapToGridWhileDragging'>
<input id='snapToGridWhileDragging'
type='checkbox'
checked={snapToGridWhileDragging}
onChange={this.handleSnapToGridWhileDraggingChange} />
<small>Snap to grid while dragging</small>
</label>
<br />
<label>
<input type='checkbox'
<label htmlFor='snapToGridAfterDrop'>
<input id='snapToGridAfterDrop'
type='checkbox'
checked={snapToGridAfterDrop}
onChange={this.handleSnapToGridAfterDropChange} />
<small>Snap to grid after drop</small>
Expand Down
5 changes: 3 additions & 2 deletions examples/02 Drag Around/Naive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export default class DragAroundNaive extends Component {
</p>
<Container hideSourceOnDrag={hideSourceOnDrag} />
<p>
<label>
<input type='checkbox'
<label htmlFor='hideSourceOnDrag'>
<input id='hideSourceOnDrag'
type='checkbox'
checked={hideSourceOnDrag}
onChange={this.handleHideSourceClick} />
<small>Hide the source item while dragging</small>
Expand Down

0 comments on commit d3ebb39

Please sign in to comment.