Checkbox UI issue with WordPress 6.6 #1033
Labels
category: compatibility
impact: high
This issue impacts a lot of users as reported by our Happiness Engineers.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: bug
The issue is a confirmed bug.
Describe the bug:
I found this issue when I was doing WP 6.6 compatibility testing in issue #1030.
The checkbox control does not show up correctly in the Settings page. See screenshot below:
Steps to reproduce:
/wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Fsettings
)Expected behavior:
The checkboxes should show up nicely, and we should be able to toggle them.
Actual behavior:
The checkboxes do not show up nicely, and we are not able to toggle them.
Cause of issue:
This issue is due to the changes in WordPress/gutenberg#60475. The
$checkbox-input-size
in the global scope is changed to--checkbox-input-size
under.components-checkbox-control
new CSS class. In the@wordpress/components
package that we bundled in this Pinterest plugin, the checkbox control does not havecomponents-checkbox-control
CSS class.For reference, here's the checkbox control HTML created by Pinterest extension - it does not have
components-checkbox-control
class:Here's the checkbox control HTML for WP 6.6, taken from https://wordpress.github.io/gutenberg/?path=/docs/components-checkboxcontrol--docs:
The text was updated successfully, but these errors were encountered: