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

Center align logos #2246

Merged
merged 2 commits into from
Aug 22, 2019
Merged
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `13.4.1`.
- Fixed `logoCloudEnterprise`, `logoLogging`, and `logoSecurity` SVGs in `EuiIcon` to be center aligned ([#2246](https://github.com/elastic/eui/pull/2246))

## [`13.4.1`](https://github.com/elastic/eui/tree/v13.4.1)

Expand All @@ -13,7 +13,7 @@ No public interface changes since `13.4.1`.
## [`13.4.0`](https://github.com/elastic/eui/tree/v13.4.0)

- Converted `EuiFacetButton` to TypeScript ([#2226](https://github.com/elastic/eui/pull/2226))
- Adds an optional `onClear` prop to the the `EuiDatePicker` component ([#2235](https://github.com/elastic/eui/pull/2235))
- Added an optional `onClear` prop to the the `EuiDatePicker` component ([#2235](https://github.com/elastic/eui/pull/2235))
- Added support for `onClick` and `href` props on `EuiListGroupItem` and converted to TypeScript ([#1933](https://github.com/elastic/eui/pull/1933))

**Bug fixes**
Expand Down
45 changes: 18 additions & 27 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3165,27 +3165,18 @@ exports[`EuiIcon props type logoCloudEnterprise is rendered 1`] = `
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<g
fill="none"
fill-rule="evenodd"
>
<path
class="euiIcon__fillNegative"
d="M11.37 18.352c.032-.01.066-.014.1-.023A6 6 0 0 1 17 10V0C8.163 0 1 7.164 1 16c0 2.793.72 5.417 1.976 7.702a18.947 18.947 0 0 1 8.393-5.349"
/>
<path
d="M17 0A15.959 15.959 0 0 0 4.717 5.75a16.006 16.006 0 0 0 7.541 5.032c.71.22 1.477.135 2.146-.188A5.94 5.94 0 0 1 17 10a5.94 5.94 0 0 1 2.596.594c.669.323 1.436.408 2.146.188a16.01 16.01 0 0 0 7.541-5.032A15.959 15.959 0 0 0 17 0"
fill="#0080D5"
/>
<path
d="M21.742 21.218c-.71-.22-1.478-.135-2.146.188A5.947 5.947 0 0 1 17 22a5.94 5.94 0 0 1-2.596-.594c-.669-.323-1.436-.408-2.146-.188a16.006 16.006 0 0 0-7.54 5.032A15.959 15.959 0 0 0 17 32c4.936 0 9.348-2.236 12.283-5.75a16.016 16.016 0 0 0-7.54-5.032"
fill="#00AEFA"
/>
<path
class="euiIcon__fillNegative"
d="M20 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0"
/>
</g>
<path
class="euiIcon__fillNegative"
d="M18 0v10a6 6 0 0 0-5.53 8.33c-.034.009-.068.012-.1.023A18.947 18.947 0 0 0 3.975 23.7 15.934 15.934 0 0 1 2 16C2 7.164 9.163 0 18 0zm0 13a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"
/>
<path
d="M22.742 21.218c-.71-.22-1.478-.135-2.146.188A5.947 5.947 0 0 1 18 22a5.94 5.94 0 0 1-2.596-.594c-.669-.323-1.436-.408-2.146-.188a16.006 16.006 0 0 0-7.54 5.032A15.959 15.959 0 0 0 18 32c4.936 0 9.348-2.236 12.283-5.75a16.016 16.016 0 0 0-7.54-5.032"
fill="#00AEFA"
/>
<path
d="M18 0A15.959 15.959 0 0 0 5.717 5.75a16.006 16.006 0 0 0 7.541 5.032c.71.22 1.477.135 2.146-.188A5.94 5.94 0 0 1 18 10a5.94 5.94 0 0 1 2.596.594c.669.323 1.436.408 2.146.188a16.01 16.01 0 0 0 7.541-5.032A15.959 15.959 0 0 0 18 0"
fill="#0080D5"
/>
</svg>
`;

Expand Down Expand Up @@ -3857,15 +3848,15 @@ exports[`EuiIcon props type logoLogging is rendered 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0 10v13a9 9 0 0 1 9 9h13c0-12.15-9.85-22-22-22"
d="M2 10v13a9 9 0 0 1 9 9h13c0-12.15-9.85-22-22-22"
fill="#0080D5"
/>
<path
class="euiIcon__fillNegative"
d="M12 13.565V32h10c0-7.722-3.981-14.51-10-18.436"
d="M14 13.565V32h10c0-7.722-3.981-14.51-10-18.436"
/>
<path
d="M12 0v10.226C19.666 14.468 24.869 22.636 24.869 32H28V16c0-8.837-7.163-16-16-16"
d="M14 0v10.226C21.666 14.468 26.869 22.636 26.869 32H30V16c0-8.837-7.163-16-16-16"
fill="#00BFB3"
/>
</svg>
Expand Down Expand Up @@ -4461,16 +4452,16 @@ exports[`EuiIcon props type logoSecurity is rendered 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M26 27.793a2.986 2.986 0 0 1-2.215 2.896C21.584 31.268 17.842 32 13 32c-4.842 0-8.584-.732-10.785-1.311A2.986 2.986 0 0 1 0 27.793V13h26v14.793z"
d="M29 27.793a2.986 2.986 0 0 1-2.215 2.896C24.584 31.268 20.842 32 16 32c-4.842 0-8.584-.732-10.785-1.311A2.986 2.986 0 0 1 3 27.793V13h26v14.793z"
fill="#0080D5"
/>
<path
d="M21 10H5V8a8 8 0 0 1 16 0v2z"
d="M24 10H8V8a8 8 0 0 1 16 0v2z"
fill="#FEC514"
/>
<path
class="euiIcon__fillNegative"
d="M21 18.793c0 .785-.453 1.499-1.169 1.82C18.521 21.201 16.16 22 13 22c-3.16 0-5.521-.799-6.831-1.387A1.988 1.988 0 0 1 5 18.793V13h16v5.793z"
d="M24 18.793c0 .785-.453 1.499-1.169 1.82C21.521 21.201 19.16 22 16 22c-3.16 0-5.521-.799-6.831-1.387A1.988 1.988 0 0 1 8 18.793V13h16v5.793z"
/>
</svg>
`;
Expand Down
30 changes: 12 additions & 18 deletions src/components/icon/assets/logo_cloud_ece.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@ const EuiIconLogoCloudEce = props => (
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<g fill="none" fillRule="evenodd">
<path
className="euiIcon__fillNegative"
d="M11.37 18.352c.032-.01.066-.014.1-.023A6 6 0 0 1 17 10V0C8.163 0 1 7.164 1 16c0 2.793.72 5.417 1.976 7.702a18.947 18.947 0 0 1 8.393-5.349"
/>
<path
fill="#0080D5"
d="M17 0A15.959 15.959 0 0 0 4.717 5.75a16.006 16.006 0 0 0 7.541 5.032c.71.22 1.477.135 2.146-.188A5.94 5.94 0 0 1 17 10a5.94 5.94 0 0 1 2.596.594c.669.323 1.436.408 2.146.188a16.01 16.01 0 0 0 7.541-5.032A15.959 15.959 0 0 0 17 0"
/>
<path
fill="#00AEFA"
d="M21.742 21.218c-.71-.22-1.478-.135-2.146.188A5.947 5.947 0 0 1 17 22a5.94 5.94 0 0 1-2.596-.594c-.669-.323-1.436-.408-2.146-.188a16.006 16.006 0 0 0-7.54 5.032A15.959 15.959 0 0 0 17 32c4.936 0 9.348-2.236 12.283-5.75a16.016 16.016 0 0 0-7.54-5.032"
/>
<path
className="euiIcon__fillNegative"
d="M20 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0"
/>
</g>
<path
className="euiIcon__fillNegative"
d="M18 0v10a6 6 0 0 0-5.53 8.33c-.034.009-.068.012-.1.023A18.947 18.947 0 0 0 3.975 23.7 15.934 15.934 0 0 1 2 16C2 7.164 9.163 0 18 0zm0 13a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"
/>
<path
fill="#00AEFA"
d="M22.742 21.218c-.71-.22-1.478-.135-2.146.188A5.947 5.947 0 0 1 18 22a5.94 5.94 0 0 1-2.596-.594c-.669-.323-1.436-.408-2.146-.188a16.006 16.006 0 0 0-7.54 5.032A15.959 15.959 0 0 0 18 32c4.936 0 9.348-2.236 12.283-5.75a16.016 16.016 0 0 0-7.54-5.032"
/>
<path
fill="#0080D5"
d="M18 0A15.959 15.959 0 0 0 5.717 5.75a16.006 16.006 0 0 0 7.541 5.032c.71.22 1.477.135 2.146-.188A5.94 5.94 0 0 1 18 10a5.94 5.94 0 0 1 2.596.594c.669.323 1.436.408 2.146.188a16.01 16.01 0 0 0 7.541-5.032A15.959 15.959 0 0 0 18 0"
/>
</svg>
);

Expand Down
9 changes: 3 additions & 6 deletions src/components/icon/assets/logo_cloud_ece.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/icon/assets/logo_logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const EuiIconLogoLogging = props => (
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<path fill="#0080D5" d="M0 10v13a9 9 0 0 1 9 9h13c0-12.15-9.85-22-22-22" />
<path fill="#0080D5" d="M2 10v13a9 9 0 0 1 9 9h13c0-12.15-9.85-22-22-22" />
<path
className="euiIcon__fillNegative"
d="M12 13.565V32h10c0-7.722-3.981-14.51-10-18.436"
d="M14 13.565V32h10c0-7.722-3.981-14.51-10-18.436"
/>
<path
fill="#00BFB3"
d="M12 0v10.226C19.666 14.468 24.869 22.636 24.869 32H28V16c0-8.837-7.163-16-16-16"
d="M14 0v10.226C21.666 14.468 26.869 22.636 26.869 32H30V16c0-8.837-7.163-16-16-16"
/>
</svg>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/icon/assets/logo_logging.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/icon/assets/logo_security.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const EuiIconLogoSecurity = props => (
{...props}>
<path
fill="#0080D5"
d="M26 27.793a2.986 2.986 0 0 1-2.215 2.896C21.584 31.268 17.842 32 13 32c-4.842 0-8.584-.732-10.785-1.311A2.986 2.986 0 0 1 0 27.793V13h26v14.793z"
d="M29 27.793a2.986 2.986 0 0 1-2.215 2.896C24.584 31.268 20.842 32 16 32c-4.842 0-8.584-.732-10.785-1.311A2.986 2.986 0 0 1 3 27.793V13h26v14.793z"
/>
<path fill="#FEC514" d="M21 10H5V8a8 8 0 0 1 16 0v2z" />
<path fill="#FEC514" d="M24 10H8V8a8 8 0 0 1 16 0v2z" />
<path
className="euiIcon__fillNegative"
d="M21 18.793c0 .785-.453 1.499-1.169 1.82C18.521 21.201 16.16 22 13 22c-3.16 0-5.521-.799-6.831-1.387A1.988 1.988 0 0 1 5 18.793V13h16v5.793z"
d="M24 18.793c0 .785-.453 1.499-1.169 1.82C21.521 21.201 19.16 22 16 22c-3.16 0-5.521-.799-6.831-1.387A1.988 1.988 0 0 1 8 18.793V13h16v5.793z"
/>
</svg>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/icon/assets/logo_security.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.