Open noquierouser opened 8 years ago
I found out the issue is originated in the Bootstrap CSS contained in the plugin.
.postbox-container .cmb2-wrap *, .postbox-container .cmb2-wrap {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
The way to fix this issue, at least how I managed to workaround this issue, is by enqueuing this CSS:
.wp-picker-holder * {
box-sizing: content-box !important;
}
And setting it as dependant from CMB2 and CMB2 Grid styles:
wp_enqueue_style(
'colorpicker_fix',
plugins_url('lib/fix-cmb2-colorpicker-box-sizing.css', __FILE__),
array('cmb2-styles', 'cmb2_grid_bootstrap_light') // here we set its dependencies
);
Thanks.
The ideal would be to edit the bootstrap css. Have an idea of what could be the change?
Loading CMB2 Grid conflicts with colorpicker CSS. Probably related to box-sizing attribute.
Before clicking colorpicker
After clicking colorpicker