Skip to content

Commit

Permalink
Update icons (#31533)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored May 19, 2021
1 parent 3b551c4 commit cce0bb7
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ exports[`Block Mover Picker should match snapshot 1`] = `
}
icon={
<SVG
viewBox="-2 -2 24 24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<Path
d="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z"
d="M12.5 3.9L6.7 9.7l1.1 1.1 4-4V20h1.4V6.7l4.5 4.1 1.1-1.1z"
/>
</SVG>
}
Expand All @@ -29,11 +29,11 @@ exports[`Block Mover Picker should match snapshot 1`] = `
}
icon={
<SVG
viewBox="-2 -2 24 24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<Path
d="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z"
d="M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"
/>
</SVG>
}
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { withSelect } from '@wordpress/data';
import {
image as placeholderIcon,
replace,
expand,
fullscreen,
textColor,
} from '@wordpress/icons';
import { store as coreStore } from '@wordpress/core-data';
Expand Down Expand Up @@ -477,7 +477,7 @@ export class ImageEdit extends Component {
<PanelBody>
{ image && sizeOptionsValid && (
<CycleSelectControl
icon={ expand }
icon={ fullscreen }
label={ __( 'Size' ) }
value={ sizeSlug || imageDefaultSize }
onChangeValue={ this.onSizeChangeValue }
Expand Down
3 changes: 3 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## Unreleased
### Breaking Changes

- Removed icons: `camera`, `chartLine`, `closeCircleFilled`, `controlsRepeat`, `expand`, as they all have better existing alternatives, and were unused by the block editor. Instead of `camera`, use `capturePhoto`. Instead of `chartLine`, use `chartBar` or `trendingUp` or `trendingDown`, instead of `closeCircleFilled`, use `close`, instead of `controlsRepeat` which was used for Reusable Blocks, consider `reusableBlock`, and instead of `expand`, use `fullscreen`.

## 3.0.0 (2021-05-14)

Expand Down
5 changes: 0 additions & 5 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ export { default as brush } from './library/brush';
export { default as button } from './library/button';
export { default as buttons } from './library/buttons';
export { default as calendar } from './library/calendar';
export { default as camera } from './library/camera';
export { default as cancelCircleFilled } from './library/cancel-circle-filled';
export { default as capturePhoto } from './library/capture-photo';
export { default as captureVideo } from './library/capture-video';
export { default as category } from './library/category';
export { default as chartBar } from './library/chart-bar';
export { default as chartLine } from './library/chart-line';
export { default as check } from './library/check';
export { default as chevronDown } from './library/chevron-down';
export { default as chevronLeft } from './library/chevron-left';
export { default as chevronRight } from './library/chevron-right';
export { default as chevronUp } from './library/chevron-up';
export { default as classic } from './library/classic';
export { default as closeCircleFilled } from './library/close-circle-filled';
export { default as close } from './library/close';
export { default as closeSmall } from './library/close-small';
export { default as cloudUpload } from './library/cloud-upload';
Expand All @@ -45,7 +42,6 @@ export { default as cog } from './library/cog';
export { default as column } from './library/column';
export { default as columns } from './library/columns';
export { default as comment } from './library/comment';
export { default as controlsRepeat } from './library/controls-repeat';
export { default as cover } from './library/cover';
export { default as create } from './library/create';
export { default as crop } from './library/crop';
Expand All @@ -57,7 +53,6 @@ export { default as desktop } from './library/desktop';
export { default as dragHandle } from './library/drag-handle';
export { default as download } from './library/download';
export { default as edit } from './library/edit';
export { default as expand } from './library/expand';
export { default as external } from './library/external';
export { default as file } from './library/file';
export { default as flipHorizontal } from './library/flip-horizontal';
Expand Down
4 changes: 2 additions & 2 deletions packages/icons/src/library/arrow-down.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const arrowDown = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z" />
</SVG>
);

Expand Down
2 changes: 1 addition & 1 deletion packages/icons/src/library/arrow-left.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SVG, Path } from '@wordpress/primitives';

const arrowLeft = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z" />
<Path d="M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z" />
</SVG>
);

Expand Down
4 changes: 2 additions & 2 deletions packages/icons/src/library/arrow-right.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const arrowRight = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z" />
</SVG>
);

Expand Down
4 changes: 2 additions & 2 deletions packages/icons/src/library/arrow-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const arrowUp = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M12.5 3.9L6.7 9.7l1.1 1.1 4-4V20h1.4V6.7l4.5 4.1 1.1-1.1z" />
</SVG>
);

Expand Down
4 changes: 2 additions & 2 deletions packages/icons/src/library/brush.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const brush = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z" />
</SVG>
);

Expand Down
12 changes: 0 additions & 12 deletions packages/icons/src/library/camera.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/icons/src/library/chart-line.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/icons/src/library/close-circle-filled.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/icons/src/library/cloud-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const cloudUpload = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z" />
</SVG>
);

Expand Down
4 changes: 2 additions & 2 deletions packages/icons/src/library/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { SVG, Path } from '@wordpress/primitives';

const cloud = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 24 24">
<Path d="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z" />
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z" />
</SVG>
);

Expand Down
12 changes: 0 additions & 12 deletions packages/icons/src/library/controls-repeat.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/icons/src/library/expand.js

This file was deleted.

0 comments on commit cce0bb7

Please sign in to comment.