Merge pull request #1074 from datitisev/specify-text-inputs-type

Added search input types to 3 inputs total, closes #726
This commit is contained in:
Toby Zerner 2016-11-28 11:13:39 +10:30 committed by GitHub
commit b010b0b486
5 changed files with 7 additions and 4 deletions

View File

@ -17834,8 +17834,8 @@ System.register('flarum/components/AppearancePage', ['flarum/components/Page', '
m(
'div',
{ className: 'AppearancePage-colors-input' },
m('input', { className: 'FormControl', placeholder: '#aaaaaa', value: this.primaryColor(), onchange: m.withAttr('value', this.primaryColor) }),
m('input', { className: 'FormControl', placeholder: '#aaaaaa', value: this.secondaryColor(), onchange: m.withAttr('value', this.secondaryColor) })
m('input', { className: 'FormControl', type: 'color', placeholder: '#aaaaaa', value: this.primaryColor(), onchange: m.withAttr('value', this.primaryColor) }),
m('input', { className: 'FormControl', type: 'color', placeholder: '#aaaaaa', value: this.secondaryColor(), onchange: m.withAttr('value', this.secondaryColor) })
),
Switch.component({
state: this.darkMode(),

View File

@ -28,8 +28,8 @@ export default class AppearancePage extends Page {
</div>
<div className="AppearancePage-colors-input">
<input className="FormControl" placeholder="#aaaaaa" value={this.primaryColor()} onchange={m.withAttr('value', this.primaryColor)}/>
<input className="FormControl" placeholder="#aaaaaa" value={this.secondaryColor()} onchange={m.withAttr('value', this.secondaryColor)}/>
<input className="FormControl" type="color" placeholder="#aaaaaa" value={this.primaryColor()} onchange={m.withAttr('value', this.primaryColor)}/>
<input className="FormControl" type="color" placeholder="#aaaaaa" value={this.secondaryColor()} onchange={m.withAttr('value', this.secondaryColor)}/>
</div>
{Switch.component({

View File

@ -26653,6 +26653,7 @@ System.register('flarum/components/Search', ['flarum/Component', 'flarum/compone
'div',
{ className: 'Search-input' },
m('input', { className: 'FormControl',
type: 'search',
placeholder: extractText(app.translator.trans('core.forum.header.search_placeholder')),
value: this.value(),
oninput: m.withAttr('value', this.value),

View File

@ -83,6 +83,7 @@ export default class Search extends Component {
})}>
<div className="Search-input">
<input className="FormControl"
type="search"
placeholder={extractText(app.translator.trans('core.forum.header.search_placeholder'))}
value={this.value()}
oninput={m.withAttr('value', this.value)}

View File

@ -60,6 +60,7 @@
padding-left: 32px;
padding-right: 32px;
.transition(all 0.4s);
box-sizing: inherit !important;
}
.Button {
float: left;