mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 15:40:00 +00:00
Less opacity for default values #73
This commit is contained in:
@@ -132,7 +132,6 @@ export default class ZoomSpecProperty extends React.Component {
|
||||
if(this.props.fieldSpec['zoom-function']) {
|
||||
zoomBtn = <MakeZoomFunctionButton onClick={this.makeZoomFunction.bind(this)} />
|
||||
}
|
||||
|
||||
return <InputBlock
|
||||
doc={this.props.fieldSpec.doc}
|
||||
label={labelFromFieldName(this.props.fieldName)}
|
||||
@@ -143,11 +142,10 @@ export default class ZoomSpecProperty extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
if(isZoomField(this.props.value)) {
|
||||
return this.renderZoomProperty();
|
||||
} else {
|
||||
return this.renderProperty();
|
||||
}
|
||||
const propClass = this.props.fieldSpec.default === this.props.value ? "maputnik-default-property" : "maputnik-modified-property"
|
||||
return <div className={propClass}>
|
||||
{isZoomField(this.props.value) ? this.renderZoomProperty() : this.renderProperty()}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user