Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons: Remove width / height attributes from svg element #43747

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/icons/src/library/arrow-up-left.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const arrowUpLeft = (
<SVG width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<SVG fill="none" xmlns="http://www.w3.org/2000/svg">
<Path d="M14 6H6v8h1.5V8.5L17 18l1-1-9.5-9.5H14V6Z" />
</SVG>
);
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/at-symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const atSymbol = (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z" />
</SVG>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/src/library/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { Path, SVG } from '@wordpress/primitives';

const background = (
<SVG width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<SVG fill="none" xmlns="http://www.w3.org/2000/svg">
<Path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/comment-edit-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { Path, SVG } from '@wordpress/primitives';

const commentEditLink = (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z" />
</SVG>
);
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/comment-reply-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { Path, SVG } from '@wordpress/primitives';

const commentReplyLink = (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z" />
</SVG>
);
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/drag-handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const dragHandle = (
<SVG
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z" />
</SVG>
);
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/drawer-left.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const drawerLeft = (
<SVG
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/drawer-right.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const drawerRight = (
<SVG
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/help-filled.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const helpFilled = (
<SVG
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
>
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/library/pin-small.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import { SVG, Path } from '@wordpress/primitives';

const pinSmall = (
<SVG
width="24"
height="24"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path d="M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z" />
</SVG>
);
Expand Down
Loading