mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 08:00:01 +00:00
Show hint when hovering over function icon
This commit is contained in:
@@ -8,6 +8,7 @@ export default class DocLabel extends React.Component {
|
||||
label: React.PropTypes.string.isRequired,
|
||||
doc: React.PropTypes.string.isRequired,
|
||||
style: React.PropTypes.object,
|
||||
cursorTargetStyle: React.PropTypes.object,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
@@ -29,6 +30,7 @@ export default class DocLabel extends React.Component {
|
||||
onMouseOut={e => this.setState({showDoc: false})}
|
||||
style={{
|
||||
cursor: 'help',
|
||||
...this.props.cursorTargetStyle,
|
||||
}}
|
||||
>
|
||||
{this.props.label}
|
||||
|
||||
Reference in New Issue
Block a user