Skip to content

Commit

Permalink
Adds icons to block settings
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed Jul 29, 2024
1 parent a5b02b9 commit 6d4f386
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
19 changes: 19 additions & 0 deletions packages/block-library/src/tab/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/components';

export default (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M5.5498 10.3501V6.3501H9.8498V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H5.5498ZM20 12.6001H4V14.1001L20 14.1001V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"
/>
</SVG>
);
4 changes: 2 additions & 2 deletions packages/block-library/src/tab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import initBlock from '../utils/init-block';
import metadata from './block.json';
import edit from './edit';
import save from './save';
// import icon from './icon';
import icon from './icon';

const { name } = metadata;

export { metadata, name };

export const settings = {
// icon,
icon,
edit,
save,
};
Expand Down
19 changes: 19 additions & 0 deletions packages/block-library/src/tabs/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/components';

export default (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M5.2998 4.8501C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998ZM14.2002 10.3501V7.1001H18.5002V10.3501H20.0002V6.8501C20.0002 6.15974 19.4406 5.6001 18.7502 5.6001H13.9502C13.2598 5.6001 12.7002 6.15974 12.7002 6.8501V10.3501H14.2002ZM20 12.6001H4V14.1001H20V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"
/>
</SVG>
);
4 changes: 2 additions & 2 deletions packages/block-library/src/tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import initBlock from '../utils/init-block';
import metadata from './block.json';
import edit from './edit';
import save from './save';
// import icon from './icon';
import icon from './icon';

const { name } = metadata;

export { metadata, name };

export const settings = {
// icon,
icon,
edit,
save,
};
Expand Down

0 comments on commit 6d4f386

Please sign in to comment.