Skip to content

Commit a5c9fc9

Browse files
committed
ALDASH-454 Enhance D3 Map tooltip help text
1 parent b34ed7d commit a5c9fc9

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
@@ -349,13 +349,25 @@ export class DataLayerSetting extends Component {
349349
/>
350350

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

0 commit comments

Comments
 (0)