Setup options for number fields, should fix #55

This commit is contained in:
Jay Wood
2016-09-30 12:19:44 -04:00
parent f6a8e942d7
commit 40d4f18c4a
2 changed files with 16 additions and 5 deletions

View File

@ -417,6 +417,11 @@ class CWV2_Admin {
'name' => __( 'Background Opacity', 'content-warning-v2' ),
'desc' => __( 'Input a float value from 0-1, the latter being completely opaque.', 'content-warning-v2' ),
'type' => 'number',
'options' => array(
'step' => 0.1,
'max' => 1,
'min' => 0,
),
),
array(
'id' => 'bg_color',