mirror of
https://github.com/maputnik/editor.git
synced 2026-01-01 19:10:01 +00:00
Added back in action buttons to input label/fieldset
This commit is contained in:
@@ -72,6 +72,9 @@ export default class Block extends React.Component {
|
||||
<div className="maputnik-input-block-label">
|
||||
{this.props.label}
|
||||
</div>
|
||||
<div className="maputnik-input-block-action">
|
||||
{this.props.action}
|
||||
</div>
|
||||
<div className="maputnik-input-block-content" ref={el => this._blockEl = el}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,12 @@ export default class Fieldset extends React.Component {
|
||||
const {props} = this;
|
||||
|
||||
return <div className="maputnik-input-block" role="group" aria-labelledby={this._labelId}>
|
||||
<div className="maputnik-input-block-label" id={this._labelId}>{props.label}</div>
|
||||
<div className="maputnik-input-block-label" id={this._labelId}>
|
||||
{props.label}
|
||||
</div>
|
||||
<div className="maputnik-input-block-action">
|
||||
{this.props.action}
|
||||
</div>
|
||||
<div className="maputnik-input-block-content">
|
||||
{props.children}
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@ export default class SpecField extends React.Component {
|
||||
TypeBlock = Block;
|
||||
}
|
||||
|
||||
return <TypeBlock label={props.label}>
|
||||
return <TypeBlock label={props.label} action={props.action}>
|
||||
<InputSpec {...props} />
|
||||
</TypeBlock>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user