{"action":"opened","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/520","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/520/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/520/events","html_url":"https://github.com/ThemeFuse/Unyson/issues/520","id":73539569,"number":520,"title":"The 'style' component in the 'Typography' option seems to be broken.","user":{"login":"sunny04","id":3881869,"avatar_url":"https://avatars.githubusercontent.com/u/3881869?v=3","gravatar_id":"","url":"https://api.github.com/users/sunny04","html_url":"https://github.com/sunny04","followers_url":"https://api.github.com/users/sunny04/followers","following_url":"https://api.github.com/users/sunny04/following{/other_user}","gists_url":"https://api.github.com/users/sunny04/gists{/gist_id}","starred_url":"https://api.github.com/users/sunny04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunny04/subscriptions","organizations_url":"https://api.github.com/users/sunny04/orgs","repos_url":"https://api.github.com/users/sunny04/repos","events_url":"https://api.github.com/users/sunny04/events{/privacy}","received_events_url":"https://api.github.com/users/sunny04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T07:19:25Z","updated_at":"2015-05-06T07:19:25Z","closed_at":null,"body":"Hi,\r\n\r\nI have the following code for a typography type option.\r\n\r\n\t'body-font' => array(\r\n\t  'label' => __('Body', 'unyson'),\r\n\t  'desc'  => __('Body font properties.', 'unyson'),\r\n\t  'type'  => 'typography',\r\n\t  'value' => array(\r\n\t    'family' => 'Arial',\r\n\t    'size'   => 16,\r\n\t    'color'  => '#666',\r\n\t    'style' => '400'\r\n\t  ),\r\n\t),\r\n\r\nAll the defaults work correctly, except for the style field I get 'Thin' or sometimes '200' as the default value. This is true even when I have a value other than 400 in the above code. I also changed the name of the option from 'body-font' to a random name on every try, to make sure that an older value from the database was not being retrieved.\r\n\r\nAlso when I try to remove the style field completely, using the following code, it still doesn't work.\r\n\r\n\t'body-font' => array(\r\n\t  'label' => __('Body', 'unyson'),\r\n\t  'desc'  => __('Body font properties.', 'unyson'),\r\n\t  'type'  => 'typography',\r\n\t  'value' => array(\r\n\t    'family' => 'Arial',\r\n\t    'size'   => 16,\r\n\t    'color'  => '#666',\r\n\t    'style' => '400'\r\n\t  ),\r\n\t 'components' => array(\r\n\t\t'style' => false\r\n \t ),\r\n\t),\r\n\r\nHowever, in one instance of my code, the style field is completely removed, but it is the one where I only wanted to have the 'size' field. Following is the code that only outputs the 'size' field which is what I wanted in that case.\r\n\r\n\t'heading-2' => array(\r\n\t  'label' => __('H2', 'unyson'),\r\n\t  'desc'  => __('Size for h2.', 'unyson'),\r\n\t  'type'  => 'typography',\r\n\t  'value' => array(\r\n\t      'size' => 30\r\n\t  ),\r\n\t 'components' => array(\r\n\t    'family' => false,\r\n\t    'size'   => true,\r\n\t    'color'  => false\r\n\t  ),\r\n\t),\r\n\r\nPlease tell me if this is a bug or if I've missed something. I just want to set a default value for the style component, or simply not have it.\r\n\r\nThanks!"}}