File tree 7 files changed +4
-6
lines changed
7 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 21
21
"react/jsx-filename-extension": 0,
22
22
"import/prefer-default-export": 0,
23
23
"jsx-a11y/no-static-element-interactions": 0,
24
+ "jsx-a11y/label-has-for": 0,
24
25
"import/no-extraneous-dependencies": [
25
26
"error", {
26
27
"devDependencies": true,
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ const factory = (Check) => {
65
65
return (
66
66
< label
67
67
data-react-toolbox = "checkbox"
68
- htmlFor = { name }
69
68
className = { className }
70
69
onMouseEnter = { onMouseEnter }
71
70
onMouseLeave = { onMouseLeave }
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ const factory = (Input) => {
156
156
</ div >
157
157
{ this . props . label
158
158
? (
159
- < label htmlFor = { this . props . name } className = { theme . label } >
159
+ < label className = { theme . label } >
160
160
{ this . props . label }
161
161
{ this . props . required ? < span className = { theme . required } > * </ span > : null }
162
162
</ label >
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ const factory = (FontIcon) => {
206
206
{ icon ? < FontIcon className = { theme . icon } value = { icon } /> : null }
207
207
< span className = { theme . bar } />
208
208
{ labelText
209
- ? < label className = { labelClassName } htmlFor = { name } >
209
+ ? < label className = { labelClassName } >
210
210
{ labelText }
211
211
{ required ? < span className = { theme . required } > * </ span > : null }
212
212
</ label >
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ const factory = (Radio) => {
72
72
const _className = classnames ( theme [ this . props . disabled ? 'disabled' : 'field' ] , className ) ;
73
73
return (
74
74
< label
75
- htmlFor = { name }
76
75
data-react-toolbox = "radio-button"
77
76
className = { _className }
78
77
onMouseEnter = { onMouseEnter }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const factory = (Thumb) => {
62
62
} = this . props ;
63
63
const _className = classnames ( theme [ disabled ? 'disabled' : 'field' ] , className ) ;
64
64
return (
65
- < label data-react-toolbox = "switch" className = { _className } htmlFor = { this . props . name } >
65
+ < label data-react-toolbox = "switch" className = { _className } >
66
66
< input
67
67
{ ...others }
68
68
checked = { this . props . checked }
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ module.exports = {
9
9
devtool : 'cheap-module-eval-source-map' ,
10
10
entry : [
11
11
'webpack-hot-middleware/client' ,
12
- 'babel-polyfill' ,
13
12
'./spec/index.js'
14
13
] ,
15
14
output : {
You can’t perform that action at this time.
0 commit comments