create a class for puestionmarkTooltip in a link and format tooltip text
parent
e3a33d0e75
commit
2bcbed9157
|
@ -52,7 +52,7 @@ class GraphOptionsTimeFormat extends PureComponent<Props, State> {
|
|||
public render() {
|
||||
const {format, customFormat} = this.state
|
||||
const tipUrl = 'http://momentjs.com/docs/#/parsing/string-format/'
|
||||
const tipContent = `For information on formatting, see ${tipUrl}`
|
||||
const tipContent = `For information on formatting, see <br/><a href="#">${tipUrl}</a>`
|
||||
|
||||
const formatOption = FORMAT_OPTIONS.find(op => op.text === format)
|
||||
const showCustom = !formatOption || customFormat
|
||||
|
|
|
@ -128,3 +128,7 @@ $qmark-tooltip-size: 15px;
|
|||
background-color: $c-pool;
|
||||
}
|
||||
}
|
||||
|
||||
a > .question-mark-tooltip:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue