-
+
{children}
diff --git a/packages/eui/src/components/icon/icon.test.tsx b/packages/eui/src/components/icon/icon.test.tsx
index 6a3b821eda15..1eaccfe173f7 100644
--- a/packages/eui/src/components/icon/icon.test.tsx
+++ b/packages/eui/src/components/icon/icon.test.tsx
@@ -57,8 +57,8 @@ const testIcon =
describe('EuiIcon', () => {
test('is rendered', testIcon({ type: 'magnify', ...requiredProps }));
- shouldRenderCustomStyles(
);
- shouldRenderCustomStyles(
, {
+ shouldRenderCustomStyles(
);
+ shouldRenderCustomStyles(
, {
wrapper: ({ children }) => {
// Need to preload the icon so we don't run into Emotion CSS `isLoading`/`isLoaded` race conditions
appendIconComponentCache({ videoPlayer: EuiIconVideoPlayer });
@@ -70,7 +70,9 @@ describe('EuiIcon', () => {
test('onIconLoad', async () => {
const onIconLoad = jest.fn();
- render(
);
+ render(
+
+ );
expect(onIconLoad).toHaveBeenCalledTimes(0);
await waitFor(() => {
@@ -198,13 +200,17 @@ describe('EuiIcon', () => {
);
};
- const { container } = render(
);
+ const { container } = render(
+
+ );
expect(container.firstChild).toMatchSnapshot();
});
describe('appendIconComponentCache', () => {
it('does nothing if not called', () => {
- const { container } = render(
);
+ const { container } = render(
+
+ );
expect(container.firstChild).toHaveAttribute('data-is-loading', 'true');
});
@@ -212,7 +218,9 @@ describe('EuiIcon', () => {
appendIconComponentCache({
videoPlayer: EuiIconVideoPlayer,
});
- const { container } = render(
);
+ const { container } = render(
+
+ );
expect(container.firstChild).not.toHaveAttribute('data-is-loading');
});
@@ -220,7 +228,9 @@ describe('EuiIcon', () => {
appendIconComponentCache({
videoPlayer: EuiIconVideoPlayer,
});
- const { container } = render(
);
+ const { container } = render(
+
+ );
expect(container.firstChild).toHaveAttribute('data-is-loading', 'true');
});
});
diff --git a/packages/eui/src/components/icon/icon_ML.a11y.tsx b/packages/eui/src/components/icon/icon_ML.a11y.tsx
index 7e34e8bb2965..997b2b4828d1 100644
--- a/packages/eui/src/components/icon/icon_ML.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_ML.a11y.tsx
@@ -29,7 +29,11 @@ describe('EuiIcons', () => {
const MLGrid = () => (
{MLIcons.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/icon/icon_apps.a11y.tsx b/packages/eui/src/components/icon/icon_apps.a11y.tsx
index b64f075f649a..fbc38a3e380b 100644
--- a/packages/eui/src/components/icon/icon_apps.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_apps.a11y.tsx
@@ -70,7 +70,11 @@ describe('EuiIcons', () => {
const AppGrid = () => (
{AppIcons.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/icon/icon_editor.a11y.tsx b/packages/eui/src/components/icon/icon_editor.a11y.tsx
index c9ce41d674b3..de26898b4893 100644
--- a/packages/eui/src/components/icon/icon_editor.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_editor.a11y.tsx
@@ -50,7 +50,11 @@ describe('EuiIcons', () => {
const EditorGrid = () => (
{EditorIcons.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/icon/icon_elastic.a11y.tsx b/packages/eui/src/components/icon/icon_elastic.a11y.tsx
index 5ceac3ab8651..df6c232f3188 100644
--- a/packages/eui/src/components/icon/icon_elastic.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_elastic.a11y.tsx
@@ -40,7 +40,11 @@ describe('EuiIcons', () => {
const ElasticGrid = () => (
{ElasticLogos.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/icon/icon_glyphs.a11y.tsx b/packages/eui/src/components/icon/icon_glyphs.a11y.tsx
index c6134ddcef60..e6da3bc6ec9d 100644
--- a/packages/eui/src/components/icon/icon_glyphs.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_glyphs.a11y.tsx
@@ -290,7 +290,11 @@ describe('EuiIcons', () => {
const GlyphGrid = () => (
{GlyphIcons.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/icon/icon_tokens.a11y.tsx b/packages/eui/src/components/icon/icon_tokens.a11y.tsx
index 15f843b92f5d..379116fad1b0 100644
--- a/packages/eui/src/components/icon/icon_tokens.a11y.tsx
+++ b/packages/eui/src/components/icon/icon_tokens.a11y.tsx
@@ -74,7 +74,11 @@ describe('EuiIcons', () => {
const TokenGrid = () => (
{TokenIcons.map((glyph) => (
-
+
))}
);
diff --git a/packages/eui/src/components/image/image_button.tsx b/packages/eui/src/components/image/image_button.tsx
index 2589170baf77..ad8a4d4ec86e 100644
--- a/packages/eui/src/components/image/image_button.tsx
+++ b/packages/eui/src/components/image/image_button.tsx
@@ -95,7 +95,7 @@ export const EuiImageButton: FunctionComponent
= ({
{openFullScreenInstructions}
-
+
)}
diff --git a/packages/eui/src/components/image/image_fullscreen_wrapper.tsx b/packages/eui/src/components/image/image_fullscreen_wrapper.tsx
index 66bc9241357f..54b6fdefffae 100644
--- a/packages/eui/src/components/image/image_fullscreen_wrapper.tsx
+++ b/packages/eui/src/components/image/image_fullscreen_wrapper.tsx
@@ -93,7 +93,12 @@ export const EuiImageFullScreenWrapper: FunctionComponent<
/>
{/* Must be outside the `figure` element in order to escape the translateY transition. see https://www.w3.org/TR/css-transforms-1/#transform-rendering */}
-