You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * External dependencies */import{registerBlockType}from'@wordpress/blocks';import{Disabled,ToggleControl}from'@wordpress/components';import{Fragment}from'@wordpress/element';import{InspectorControls}from'@wordpress/editor';consttoggles=(<Fragment><Disabled><ToggleControllabel="This is disabled"/></Disabled><ToggleControllabel="This is not disabled"/></Fragment>);registerBlockType('demo/toggle-control',{title: 'Toggle Control demo',category: 'layout',edit: ()=>(<Fragment><InspectorControls>{toggles}</InspectorControls>{toggles}</Fragment>),save: ()=>null,});
Tracking the fix for Simple payments in wp-admin here: #28659
The text was updated successfully, but these errors were encountered:
While building Gutenberg block for Simple Payments, we used disabled toggle component from Gutenberg.
This is how it looked for Calypso:
And in wp-admin:
The border will be fixed for Gutenberg (WordPress/gutenberg#12091) but that fix will still leave Calypso broken, as demonstrated in #28659 (comment):
You can replicate the problem with this block:
Tracking the fix for Simple payments in wp-admin here: #28659
The text was updated successfully, but these errors were encountered: