Skip to content

Commit

Permalink
Externalize the __experimentalInputControl component imported from …
Browse files Browse the repository at this point in the history
…`@wordpress/components`.
  • Loading branch information
eason9487 committed Aug 14, 2023
1 parent 9617127 commit fe54935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/src/components/app-input-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import classnames from 'classnames';
import { __, sprintf } from '@wordpress/i18n';
import { forwardRef } from '@wordpress/element';
import { __experimentalInputControl as InputControl } from '@wordpress/components';
import { __experimentalInputControl as InputControl } from 'extracted/@wordpress/components';

/**
* Internal dependencies
Expand Down
8 changes: 4 additions & 4 deletions js/src/css/shared/_gutenberg-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
font-size: inherit;
}
}
}

// hack to fix InputControl suffix's empty right margin.
.components-input-control__suffix {
margin-right: $grid-unit;
// Adjust InputControl suffix's empty right margin.
.components-input-control__suffix {
margin-right: $grid-unit;
}
}

0 comments on commit fe54935

Please sign in to comment.