Show hint when hovering over function icon

This commit is contained in:
Lukas Martinelli
2017-01-09 22:54:30 +01:00
parent d3276829b2
commit cff0a15f7e
2 changed files with 9 additions and 1 deletions

View File

@@ -174,10 +174,16 @@ export default class ZoomSpecField extends React.Component {
verticalAlign: 'top',
backgroundColor: null,
display: 'inline-block',
paddingBottom: 0,
paddingTop: 0,
}}
onClick={this.makeZoomFunction.bind(this)}
>
<FunctionIcon />
<DocLabel
label={<FunctionIcon />}
cursorTargetStyle={{ cursor: 'pointer' }}
doc="Turn property into a zoom function to enable a map feature to change with map's zoom level."
/>
</Button>
}
<SpecField {...this.props} style={{ width: '50%' } }/>