Javi Velasco 2017-02-07 17:23:04 +01:00
parent ba29686d46
commit e366bedcf7
7 changed files with 4 additions and 6 deletions

View File

@ -21,6 +21,7 @@
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"import/no-extraneous-dependencies": [
"error", {
"devDependencies": true,

View File

@ -65,7 +65,6 @@ const factory = (Check) => {
return (
<label
data-react-toolbox="checkbox"
htmlFor={name}
className={className}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}

View File

@ -156,7 +156,7 @@ const factory = (Input) => {
</div>
{this.props.label
? (
<label htmlFor={this.props.name} className={theme.label}>
<label className={theme.label}>
{this.props.label}
{this.props.required ? <span className={theme.required}> * </span> : null}
</label>

View File

@ -206,7 +206,7 @@ const factory = (FontIcon) => {
{icon ? <FontIcon className={theme.icon} value={icon} /> : null}
<span className={theme.bar} />
{labelText
? <label className={labelClassName} htmlFor={name}>
? <label className={labelClassName}>
{labelText}
{required ? <span className={theme.required}> * </span> : null}
</label>

View File

@ -72,7 +72,6 @@ const factory = (Radio) => {
const _className = classnames(theme[this.props.disabled ? 'disabled' : 'field'], className);
return (
<label
htmlFor={name}
data-react-toolbox="radio-button"
className={_className}
onMouseEnter={onMouseEnter}

View File

@ -62,7 +62,7 @@ const factory = (Thumb) => {
} = this.props;
const _className = classnames(theme[disabled ? 'disabled' : 'field'], className);
return (
<label data-react-toolbox="switch" className={_className} htmlFor={this.props.name}>
<label data-react-toolbox="switch" className={_className}>
<input
{...others}
checked={this.props.checked}

View File

@ -9,7 +9,6 @@ module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: [
'webpack-hot-middleware/client',
'babel-polyfill',
'./spec/index.js'
],
output: {