mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
make .no-label
an auto assignment
thanks @rschamp!
This commit is contained in:
parent
b510d154df
commit
69ac5b60bd
3 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,8 @@ var Input = React.createClass({
|
|||
render: function () {
|
||||
var classes = classNames(
|
||||
this.state.status,
|
||||
this.props.className
|
||||
this.props.className,
|
||||
{'no-label': (typeof this.props.label === 'undefined')}
|
||||
);
|
||||
return (
|
||||
<FRCInput {... this.props}
|
||||
|
|
|
@ -223,7 +223,6 @@ var Navigation = React.createClass({
|
|||
<Form onSubmit={this.onSearchSubmit}>
|
||||
<Button type="submit" className="btn-search" />
|
||||
<Input type="text"
|
||||
className="no-label"
|
||||
aria-label={formatMessage({id: 'general.search'})}
|
||||
placeholder={formatMessage({id: 'general.search'})}
|
||||
name="q" />
|
||||
|
|
|
@ -315,7 +315,6 @@ module.exports = {
|
|||
<div className="gender-input">
|
||||
<Input name="user.genderOther"
|
||||
type="text"
|
||||
className="no-label"
|
||||
disabled={this.state.otherDisabled}
|
||||
required={!this.state.otherDisabled}
|
||||
help={null} />
|
||||
|
@ -500,7 +499,6 @@ module.exports = {
|
|||
</div>
|
||||
<div className="other-input">
|
||||
<Input type="text"
|
||||
className="no-label"
|
||||
name="organization.other"
|
||||
disabled={this.state.otherDisabled}
|
||||
required="isFalse"
|
||||
|
|
Loading…
Reference in a new issue