Skip to content

Commit

Permalink
reduce size of lock icon on list view too
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Dec 16, 2022
1 parent 0e276d7 commit 791fa2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

/**
Expand Down
7 changes: 6 additions & 1 deletion packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function ListViewBlockSelectButton(
</span>
) }
{ isLocked && (
<span className="block-editor-list-view-block-select-button__lock offcanvas-editor-list-view-block-select-button__lock">
<span className="block-editor-list-view-block-select-button__lock">
<Icon icon={ lock } />
</span>
) }
Expand Down

0 comments on commit 791fa2f

Please sign in to comment.