Skip to content

Commit 057466f

Browse files
authored
Merge branch 'master' into 639-fix
2 parents 2234df7 + 8e6fcd0 commit 057466f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
2-
<a href="https://travis-ci.org/evcohen/eslint-plugin-jsx-a11y">
3-
<img src="https://api.travis-ci.org/evcohen/eslint-plugin-jsx-a11y.svg?branch=master"
2+
<a href="https://travis-ci.com/github/jsx-eslint/eslint-plugin-jsx-a11y">
3+
<img src="https://travis-ci.com/jsx-eslint/eslint-plugin-jsx-a11y.svg?branch=master"
44
alt="build status">
55
</a>
66
<a href="https://npmjs.org/package/eslint-plugin-jsx-a11y">

__tests__/src/rules/control-has-associated-label-test.js

+5
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ const alwaysValid = [
210210
{ code: '<input type="datetime" />' },
211211
{ code: '<input type="email" />' },
212212
{ code: '<input type="file" />' },
213+
{ code: '<input type="hidden" />' },
214+
{ code: '<input type="hidden" name="bot-field"/>' },
215+
{ code: '<input type="hidden" name="form-name" value="Contact Form"/>' },
213216
{ code: '<input type="image" />' },
214217
{ code: '<input type="month" />' },
215218
{ code: '<input type="number" />' },
@@ -221,6 +224,8 @@ const alwaysValid = [
221224
{ code: '<input type="submit" />' },
222225
{ code: '<input type="tel" />' },
223226
{ code: '<input type="text" />' },
227+
{ code: '<label>Foo <input type="text" /></label>' },
228+
{ code: '<input name={field.name} id="foo" type="text" value={field.value} disabled={isDisabled} onChange={changeText(field.onChange, field.name)} onBlur={field.onBlur} />' },
224229
{ code: '<input type="time" />' },
225230
{ code: '<input type="url" />' },
226231
{ code: '<input type="week" />' },

__tests__/src/rules/label-has-associated-control-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const bothValid = [
7575
const alwaysValid = [
7676
{ code: '<div />' },
7777
{ code: '<CustomElement />' },
78+
{ code: '<input type="hidden" />' },
7879
];
7980

8081
const htmlForInvalid = [

0 commit comments

Comments
 (0)