jtsternberg / Shortcode_Button

Tinymce and Quicktag buttons for outputting shortcodes. Built to work with CMB2.
81 stars 7 forks source link

Checkbox field styling #18

Closed JiveDig closed 7 years ago

JiveDig commented 7 years ago

The checkbox field would look much better, and be much more usable, if it were styled like the multicheck_inline field, but obviously with only 1 value.

Here is the checkbox field (last field in form):

screen shot 2017-06-07 at 12 28 23 am

Here is the multicheck_inline field with 1 option:

screen shot 2017-06-07 at 12 28 50 am

I would just use the multicheck_inline field but it doesn't parse correctly, I just need boolean but it's returning an array, naturally. I could filter with `_shortcode_fields, but then when I edit, it doesn't load correctly.

The easiest things seemed to be more consistent form styling for checkbox fields.

Let me know what you think.

jtsternberg commented 7 years ago

I agree, that does look much cleaner. Would you be willing to issue a PR? https://github.com/jtsternberg/Shortcode_Button/blob/master/css/shortcode-button.css