Skip to content

Commit 538ca6b

Browse files
committed
ALDASH-454 Enhance D3 Map tooltip help text
1 parent 66cf8bf commit 538ca6b

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

  • plugins/wp-react-blocks-plugin/blocks/d3Map/layers

plugins/wp-react-blocks-plugin/blocks/d3Map/layers/Data.jsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,25 @@ export class DataLayerSetting extends Component {
348348
/>
349349

350350
</PanelRow>
351-
{app != 'csv' && allMeasures && allMeasures.map(m => <PanelRow><p
352-
style={{
353-
"margin-top": "calc(8px)",
354-
"font-size": "12px",
355-
"font-style": "normal",
356-
"color": "rgb(117, 117, 117)"
357-
}}>{"{" + m.value + "}"}</p></PanelRow>)}
351+
<PanelRow>
352+
<div style={{display: "flex", flexDirection: "column"}}>
353+
<strong>{__("You can use the following variables", "dg")}</strong>
354+
{app != 'csv' && allMeasures && allMeasures.map(m =><div style={{
355+
"margin-top": "calc(8px)",
356+
"font-size": "12px",
357+
"font-style": "normal",
358+
"color": "rgb(117, 117, 117)"
359+
}}>
360+
{"{" + m.value + "}"}</div>)}
361+
362+
{jsonFields.map(m => <div style={{
363+
"margin-top": "calc(8px)",
364+
"font-size": "12px",
365+
"font-style": "normal",
366+
"color": "rgb(117, 117, 117)"
367+
}}>{"{" + m + "}"}</div>)}
368+
</div>
369+
</PanelRow>
358370
</PanelBody>,
359371
<React.Fragment>
360372
{app != 'csv' && <Measures

0 commit comments

Comments
 (0)