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

[Fix] Update new SVG file and snapshots for Polygon #1139

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Add exit code to compile-scss script on failure ([#1024](https://github.com/opensearch-project/oui/pull/1024))
- Correct file path for import of Query component ([#1069](https://github.com/opensearch-project/oui/pull/1069))
- Fix "Guidelines" documentation links rendering blank pages ([#1111](https://github.com/opensearch-project/oui/pull/1111))
- Fix `Polygon` icon sizing issue ([#1139](https://github.com/opensearch-project/oui/pull/1139))

### 🚞 Infrastructure

Expand Down
5 changes: 2 additions & 3 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7241,15 +7241,14 @@ exports[`OuiIcon props type polygon is rendered 1`] = `
<svg
aria-hidden="true"
class="ouiIcon ouiIcon--medium ouiIcon-isLoaded"
fill-rule="evenodd"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15 11v4h-4v-1.5H5V15H1v-4h1.5V5H1V1h4v1.3h6V1h4v4h-2.9l-.8 1h.7v4h-.8l.8 1h3zm-1 3v-2h-2v2h2zm0-10V2h-2v2h2zm-3 8.5v-1.2L10 10H8V6h2l1-1.3V3.3H5V5H3.5v6H5v1.5h6zM11 9V7H9v2h2zm-7 5v-2H2v2h2zM4 4V2H2v2h2z"
d="m1 5v-4h4v1.3h6v-1.3h3.9999v4h-2.9342l-0.8077 1h0.7419v4h-0.7597l0.8 1h2.9599v4h-4v-1.5h-5.9999v1.5h-3.9999v-4h1.5v-6l-1.5002-6e-5zm1-3.0001h2v2h-2v-2zm9 10.5v-1.1996l-1.0402-1.3004h-1.9597v-4h1.9727l1.0273-1.272v-1.4281h-5.9999v1.7h-1.5v6h1.5v1.5001h5.9999zm1.0001-10.5h2v2h-2v-2zm-8.0002 10h-2v2h2v-2zm5.0001-5.0001h2v2h-2v-2zm3.0001 5.0001h2v2h-2v-2z"
/>
</svg>
`;
Expand Down
5 changes: 2 additions & 3 deletions src/components/icon/assets/polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ import * as React from 'react';
const OuiIconPolygon = ({ title, titleId, ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
fillRule="evenodd"
aria-labelledby={titleId}
{...props}>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M15 11v4h-4v-1.5H5V15H1v-4h1.5V5H1V1h4v1.3h6V1h4v4h-2.9l-.8 1h.7v4h-.8l.8 1h3zm-1 3v-2h-2v2h2zm0-10V2h-2v2h2zm-3 8.5v-1.2L10 10H8V6h2l1-1.3V3.3H5V5H3.5v6H5v1.5h6zM11 9V7H9v2h2zm-7 5v-2H2v2h2zM4 4V2H2v2h2z" />
<path d="m1 5v-4h4v1.3h6v-1.3h3.9999v4h-2.9342l-0.8077 1h0.7419v4h-0.7597l0.8 1h2.9599v4h-4v-1.5h-5.9999v1.5h-3.9999v-4h1.5v-6l-1.5002-6e-5zm1-3.0001h2v2h-2v-2zm9 10.5v-1.1996l-1.0402-1.3004h-1.9597v-4h1.9727l1.0273-1.272v-1.4281h-5.9999v1.7h-1.5v6h1.5v1.5001h5.9999zm1.0001-10.5h2v2h-2v-2zm-8.0002 10h-2v2h2v-2zm5.0001-5.0001h2v2h-2v-2zm3.0001 5.0001h2v2h-2v-2z" />
</svg>
);
export const icon = OuiIconPolygon;
9 changes: 4 additions & 5 deletions src/components/icon/assets/polygon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.