diff --git a/packages/block-editor/src/components/list-view/block-select-button.js b/packages/block-editor/src/components/list-view/block-select-button.js index 9477eb2cda40c..39baf78d5a7a8 100644 --- a/packages/block-editor/src/components/list-view/block-select-button.js +++ b/packages/block-editor/src/components/list-view/block-select-button.js @@ -12,7 +12,7 @@ import { __experimentalTruncate as Truncate, } from '@wordpress/components'; import { forwardRef } from '@wordpress/element'; -import { Icon, lock } from '@wordpress/icons'; +import { Icon, lockSmall as lock } from '@wordpress/icons'; import { SPACE, ENTER } from '@wordpress/keycodes'; /** diff --git a/packages/block-editor/src/components/list-view/style.scss b/packages/block-editor/src/components/list-view/style.scss index 0c271352b9155..6bcb7667b36b8 100644 --- a/packages/block-editor/src/components/list-view/style.scss +++ b/packages/block-editor/src/components/list-view/style.scss @@ -319,11 +319,16 @@ .block-editor-list-view-block-select-button__lock { line-height: 0; - width: 24px; + width: 16px; min-width: 24px; + height: 16px; margin-left: auto; padding: 0; vertical-align: middle; + display: inline-flex; + justify-content: center; + align-items: center; + overflow: hidden; } } diff --git a/packages/block-editor/src/components/off-canvas-editor/block-select-button.js b/packages/block-editor/src/components/off-canvas-editor/block-select-button.js index a3cb64e9298dd..543823ab1ada2 100644 --- a/packages/block-editor/src/components/off-canvas-editor/block-select-button.js +++ b/packages/block-editor/src/components/off-canvas-editor/block-select-button.js @@ -12,7 +12,7 @@ import { __experimentalTruncate as Truncate, } from '@wordpress/components'; import { forwardRef } from '@wordpress/element'; -import { Icon, lock } from '@wordpress/icons'; +import { Icon, lockSmall as lock } from '@wordpress/icons'; import { SPACE, ENTER } from '@wordpress/keycodes'; /** diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index 92bc48c185cc9..77c974fc61211 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -129,6 +129,7 @@ export { default as listItem } from './library/list-item'; export { default as listView } from './library/list-view'; export { default as lock } from './library/lock'; export { default as lockOutline } from './library/lock-outline'; +export { default as lockSmall } from './library/lock-small'; export { default as login } from './library/login'; export { default as loop } from './library/loop'; export { default as mapMarker } from './library/map-marker'; diff --git a/packages/icons/src/library/lock-small.js b/packages/icons/src/library/lock-small.js new file mode 100644 index 0000000000000..9ed94cc264b00 --- /dev/null +++ b/packages/icons/src/library/lock-small.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const lockSmall = ( + + + +); + +export default lockSmall;