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

[EuiIcon] Redesign launch glyph #7670

Merged
merged 4 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions changelogs/upcoming/7670.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `launch` glyph for `EuiIcon`
8 changes: 5 additions & 3 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4372,15 +4372,17 @@ exports[`EuiIcon props type launch is rendered 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"
clip-rule="evenodd"
d="M10.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"
fill-rule="evenodd"
/>
<path
clip-rule="evenodd"
d="M10.355 1.791A3.5 3.5 0 0 1 12.57 1H14a1 1 0 0 1 1 1v1.43a3.5 3.5 0 0 1-.791 2.215l-3.144 3.843a2.5 2.5 0 0 0-.565 1.583v1.636l-1.646 1.647a.5.5 0 0 1-.557.103l-.634-.282a11.5 11.5 0 0 1-5.838-5.838l-.282-.634a.5.5 0 0 1 .103-.557L3.293 5.5h1.636a2.5 2.5 0 0 0 1.583-.565l3.843-3.144ZM12.57 2a2.5 2.5 0 0 0-1.583.565L7.145 5.71a3.5 3.5 0 0 1-2.215.79H3.707l-1.11 1.11.142.32a10.498 10.498 0 0 0 1.825 2.799l2.082-2.083a.5.5 0 1 1 .708.708L5.27 11.436a10.496 10.496 0 0 0 2.798 1.825l.32.143L9.5 12.293V11.07a3.5 3.5 0 0 1 .791-2.216l3.144-3.843A2.5 2.5 0 0 0 14 3.43V2h-1.43Z"
d="M14.243 1.022a8.47 8.47 0 0 0-3.168.373c-1.534.491-2.94 1.533-4.138 2.715l-.168-.168a.995.995 0 0 0-1.175-.182l-4.09 2.23c-.656.357-.657 1.303-.002 1.702l1.372.836c.078.048.235.144.44.28l-.109.183c-.216.369-.14.84.17 1.15l2.484 2.484c.31.31.781.387 1.15.17l.183-.109c.137.206.233.363.28.442l.836 1.37c.4.656 1.345.654 1.703-.002l2.23-4.089a.995.995 0 0 0-.183-1.176l-.167-.167c1.182-1.2 2.223-2.605 2.714-4.138a8.477 8.477 0 0 0 .373-3.169.79.79 0 0 0-.735-.735ZM10.32 9.178c1.487-1.322 2.812-2.902 3.348-4.577a7.508 7.508 0 0 0 .341-2.61 7.543 7.543 0 0 0-2.608.342c-1.676.537-3.256 1.861-4.578 3.348-1.29 1.449-2.254 2.962-2.745 3.792l2.449 2.45c.83-.492 2.343-1.456 3.792-2.745Zm-4.055-4.37-.18-.18-4.089 2.228 1.373.837c.08.049.238.145.444.282a25.66 25.66 0 0 1 2.452-3.167Zm1.761 7.38c.138.208.235.367.284.446l.835 1.371 2.23-4.088-.181-.18a25.652 25.652 0 0 1-3.168 2.451Z"
fill-rule="evenodd"
/>
<path
d="M1.9 10.7a.5.5 0 0 0-.88.163l-1 3.5A.5.5 0 0 0 0 14.5v1a.5.5 0 0 0 .5.5h1a.502.502 0 0 0 .137-.02l3.5-1a.5.5 0 0 0 .163-.88l-1.314-.986a5.5 5.5 0 0 1-1.1-1.1L1.9 10.7Z"
d="M3.236 12.058c.19-.19.5-.185.696.01.195.195.2.507.01.696L1.887 14.82a.442.442 0 0 1-.706-.706l2.055-2.056Zm1.412 1.412c.19-.19.5-.185.696.01.195.195.2.507.01.696l-.685.685c-.19.19-.5.185-.696-.01a.492.492 0 0 1-.01-.696l.685-.685Zm-2.824-2.824c.19-.19.5-.185.696.01.195.195.2.507.01.696l-.685.685c-.19.19-.5.185-.696-.01a.492.492 0 0 1-.01-.696l.685-.685Z"
/>
</svg>
`;
Expand Down
10 changes: 7 additions & 3 deletions src/components/icon/assets/launch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ const EuiIconLaunch = ({
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M11 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" />
<path
fillRule="evenodd"
d="M10.355 1.791A3.5 3.5 0 0 1 12.57 1H14a1 1 0 0 1 1 1v1.43a3.5 3.5 0 0 1-.791 2.215l-3.144 3.843a2.5 2.5 0 0 0-.565 1.583v1.636l-1.646 1.647a.5.5 0 0 1-.557.103l-.634-.282a11.5 11.5 0 0 1-5.838-5.838l-.282-.634a.5.5 0 0 1 .103-.557L3.293 5.5h1.636a2.5 2.5 0 0 0 1.583-.565l3.843-3.144ZM12.57 2a2.5 2.5 0 0 0-1.583.565L7.145 5.71a3.5 3.5 0 0 1-2.215.79H3.707l-1.11 1.11.142.32a10.498 10.498 0 0 0 1.825 2.799l2.082-2.083a.5.5 0 1 1 .708.708L5.27 11.436a10.496 10.496 0 0 0 2.798 1.825l.32.143L9.5 12.293V11.07a3.5 3.5 0 0 1 .791-2.216l3.144-3.843A2.5 2.5 0 0 0 14 3.43V2h-1.43Z"
d="M10.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"
clipRule="evenodd"
/>
<path d="M1.9 10.7a.5.5 0 0 0-.88.163l-1 3.5A.5.5 0 0 0 0 14.5v1a.5.5 0 0 0 .5.5h1a.502.502 0 0 0 .137-.02l3.5-1a.5.5 0 0 0 .163-.88l-1.314-.986a5.5 5.5 0 0 1-1.1-1.1L1.9 10.7Z" />
<path
fillRule="evenodd"
d="M14.243 1.022a8.47 8.47 0 0 0-3.168.373c-1.534.491-2.94 1.533-4.138 2.715l-.168-.168a.995.995 0 0 0-1.175-.182l-4.09 2.23c-.656.357-.657 1.303-.002 1.702l1.372.836c.078.048.235.144.44.28l-.109.183c-.216.369-.14.84.17 1.15l2.484 2.484c.31.31.781.387 1.15.17l.183-.109c.137.206.233.363.28.442l.836 1.37c.4.656 1.345.654 1.703-.002l2.23-4.089a.995.995 0 0 0-.183-1.176l-.167-.167c1.182-1.2 2.223-2.605 2.714-4.138a8.477 8.477 0 0 0 .373-3.169.79.79 0 0 0-.735-.735ZM10.32 9.178c1.487-1.322 2.812-2.902 3.348-4.577a7.508 7.508 0 0 0 .341-2.61 7.543 7.543 0 0 0-2.608.342c-1.676.537-3.256 1.861-4.578 3.348-1.29 1.449-2.254 2.962-2.745 3.792l2.449 2.45c.83-.492 2.343-1.456 3.792-2.745Zm-4.055-4.37-.18-.18-4.089 2.228 1.373.837c.08.049.238.145.444.282a25.66 25.66 0 0 1 2.452-3.167Zm1.761 7.38c.138.208.235.367.284.446l.835 1.371 2.23-4.088-.181-.18a25.652 25.652 0 0 1-3.168 2.451Z"
clipRule="evenodd"
/>
<path d="M3.236 12.058c.19-.19.5-.185.696.01.195.195.2.507.01.696L1.887 14.82a.442.442 0 0 1-.706-.706l2.055-2.056Zm1.412 1.412c.19-.19.5-.185.696.01.195.195.2.507.01.696l-.685.685c-.19.19-.5.185-.696-.01a.492.492 0 0 1-.01-.696l.685-.685Zm-2.824-2.824c.19-.19.5-.185.696.01.195.195.2.507.01.696l-.685.685c-.19.19-.5.185-.696-.01a.492.492 0 0 1-.01-.696l.685-.685Z" />
</svg>
);
export const icon = EuiIconLaunch;
8 changes: 4 additions & 4 deletions src/components/icon/svgs/launch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading