diff --git a/src-docs/src/views/card/card_example.js b/src-docs/src/views/card/card_example.js
index 6810a164f3b..5ae139f02d6 100644
--- a/src-docs/src/views/card/card_example.js
+++ b/src-docs/src/views/card/card_example.js
@@ -39,7 +39,7 @@ export const CardExample = {
Description needed: how to use the EuiCard component.
),
- components: { EuiCard },
+ props: { EuiCard },
demo: ,
},
{
diff --git a/src-docs/src/views/card/card_image.js b/src-docs/src/views/card/card_image.js
index db517910867..5f1d1f5622d 100644
--- a/src-docs/src/views/card/card_image.js
+++ b/src-docs/src/views/card/card_image.js
@@ -5,25 +5,35 @@ import {
EuiCard,
EuiFlexGroup,
EuiFlexItem,
+ EuiIcon,
} from '../../../../src/components';
-const images = ['Nature', 'Water', 'City'];
-
-const cardNodes = images.map(function (item) {
- return (
+export default () => (
+
Go for it}
+ />
+
+
+ Go for it}
+ />
+
+
+ }
+ title={`Beats in the City`}
description="Example of a card's description. Stick to one or two sentences."
footer={Go for it}
/>
- );
-});
-
-export default () => (
-
- {cardNodes}
);
diff --git a/src-docs/src/views/panel/panel_example.js b/src-docs/src/views/panel/panel_example.js
index a116fb87d6b..1f4d46bb9c9 100644
--- a/src-docs/src/views/panel/panel_example.js
+++ b/src-docs/src/views/panel/panel_example.js
@@ -56,7 +56,6 @@ export const PanelExample = {
add isHoverable as a prop.
),
- props: { EuiPanel },
demo: ,
}],
};
diff --git a/src-docs/src/views/panel/panel_hover.js b/src-docs/src/views/panel/panel_hover.js
index 26fdd5e8e66..aed23fe6bf0 100644
--- a/src-docs/src/views/panel/panel_hover.js
+++ b/src-docs/src/views/panel/panel_hover.js
@@ -6,6 +6,6 @@ import {
export default () => (
- Hover or focus on me to see my hover state.
+ Hover me to see my hover state.
);
diff --git a/src/components/card/__snapshots__/card.test.js.snap b/src/components/card/__snapshots__/card.test.js.snap
index 6848edc09fa..5cc9be9011d 100644
--- a/src/components/card/__snapshots__/card.test.js.snap
+++ b/src/components/card/__snapshots__/card.test.js.snap
@@ -7,7 +7,7 @@ exports[`EuiCard is rendered 1`] = `
data-test-subj="test subject string"
>
+
+ );
+ }
+
+ let iconNode;
+ if (icon) {
+ iconNode = React.cloneElement(
+ icon,
+ { className: 'euiCard__icon' }
);
}
@@ -42,9 +49,9 @@ export const EuiCard = ({
className={classes}
{...rest}
>
-
+
{imageNode}
- {icon}
+ {iconNode}