mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:45:29 +01:00
Added back in action buttons to input label/fieldset
This commit is contained in:
parent
f3906c8dd8
commit
40579c3e0c
4 changed files with 21 additions and 3 deletions
|
@ -72,6 +72,9 @@ export default class Block extends React.Component {
|
||||||
<div className="maputnik-input-block-label">
|
<div className="maputnik-input-block-label">
|
||||||
{this.props.label}
|
{this.props.label}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="maputnik-input-block-action">
|
||||||
|
{this.props.action}
|
||||||
|
</div>
|
||||||
<div className="maputnik-input-block-content" ref={el => this._blockEl = el}>
|
<div className="maputnik-input-block-content" ref={el => this._blockEl = el}>
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -14,7 +14,12 @@ export default class Fieldset extends React.Component {
|
||||||
const {props} = this;
|
const {props} = this;
|
||||||
|
|
||||||
return <div className="maputnik-input-block" role="group" aria-labelledby={this._labelId}>
|
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">
|
<div className="maputnik-input-block-content">
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default class SpecField extends React.Component {
|
||||||
TypeBlock = Block;
|
TypeBlock = Block;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <TypeBlock label={props.label}>
|
return <TypeBlock label={props.label} action={props.action}>
|
||||||
<InputSpec {...props} />
|
<InputSpec {...props} />
|
||||||
</TypeBlock>
|
</TypeBlock>
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,11 +168,21 @@
|
||||||
color: $color-lowgray;
|
color: $color-lowgray;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 50%;
|
width: 32%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-action {
|
||||||
|
color: $color-lowgray;
|
||||||
|
display: inline-block;
|
||||||
|
user-select: none;
|
||||||
|
width: 18%;
|
||||||
|
vertical-align: top;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
&-content {
|
&-content {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
Loading…
Reference in a new issue