mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Revert color to text input type
#1074 changed the input type for these fields to "color", but it turns out the browser support for this input type sucks (they give you a very limited color picker, and make it hard to input hex codes).
This commit is contained in:
@@ -28,8 +28,8 @@ export default class AppearancePage extends Page {
|
||||
</div>
|
||||
|
||||
<div className="AppearancePage-colors-input">
|
||||
<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)}/>
|
||||
<input className="FormControl" type="text" placeholder="#aaaaaa" value={this.primaryColor()} onchange={m.withAttr('value', this.primaryColor)}/>
|
||||
<input className="FormControl" type="text" placeholder="#aaaaaa" value={this.secondaryColor()} onchange={m.withAttr('value', this.secondaryColor)}/>
|
||||
</div>
|
||||
|
||||
{Switch.component({
|
||||
|
Reference in New Issue
Block a user