Skip to content

Commit 19e4aaf

Browse files
committed
Added style to manual configuratio.
Fixed manual configuration settings display. Ref: @contactashish13
1 parent 9cc27b2 commit 19e4aaf

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

classes/Visualizer/Render/Sidebar.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,16 @@ protected function _renderAdvancedSettings() {
157157

158158
self::_renderGroupStart( esc_html__( 'Manual Configuration', 'visualizer' ) );
159159
self::_renderSectionStart();
160-
self::_renderSectionDescription( esc_html__( 'Configure the graph by providing values.', 'visualizer' ) );
161-
self::_renderSectionEnd();
160+
self::_renderSectionDescription( __( 'Configure the graph by providing configuration variables right from the','visualizer' ) . ' <a href="https://developers.google.com/chart/interactive/docs/reference" target="_blank">Google Visualization</a> API.' );
162161

163162
$example = '
164163
{
165-
vAxis: {
166-
"ticks":[5,10,15,20]
167-
"titleTextStyle":{
168-
"color":"red"
164+
"vAxis": {
165+
"ticks": [5, 10, 15, 20],
166+
"titleTextStyle": {
167+
"color": "red"
169168
},
170-
"textPosition":"in"
169+
"textPosition": "in"
171170
}
172171
}';
173172

@@ -176,11 +175,13 @@ protected function _renderAdvancedSettings() {
176175
'manual',
177176
$this->manual,
178177
sprintf(
179-
esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ), '<br><pre>' . $example . '</pre>'
178+
esc_html__( 'One per line in valid JSON (key:value) format e.g. %s', 'visualizer' ), '<br><code>' . $example . '</code>'
180179
),
181180
'',
182181
array( 'rows' => 5 )
183182
);
183+
184+
self::_renderSectionEnd();
184185
self::_renderGroupEnd();
185186

186187
}

css/frame.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,3 +1019,6 @@ button#editor-chart-button {
10191019
span.section-error {
10201020
color: #ff000;
10211021
}
1022+
#visualizer-error-manual{
1023+
color:#ff595e;
1024+
}

0 commit comments

Comments
 (0)