Skip to content

Commit

Permalink
Externalize the ToggleControl component imported from `@wordpress/c…
Browse files Browse the repository at this point in the history
…omponents`.
  • Loading branch information
eason9487 committed Aug 14, 2023
1 parent 30a8a3c commit 9617127
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/src/components/app-standalone-toggle-control/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { ToggleControl } from '@wordpress/components';
import { ToggleControl } from 'extracted/@wordpress/components';

/**
* Internal dependencies
Expand Down
6 changes: 4 additions & 2 deletions js/src/components/app-standalone-toggle-control/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
display: inline-block;

// remove the margins specified in ToggleControl component.
.components-base-control {
margin-bottom: 0;
}

.components-toggle-control {
.components-base-control__field {
margin-bottom: 0;

.components-form-toggle {
margin-right: 0;

Expand Down

0 comments on commit 9617127

Please sign in to comment.