diff --git a/CHANGELOG.md b/CHANGELOG.md index 8134f02c5b7..391459e7fc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ - Added `status` prop to `EuiStep` for additional styling ([#673](https://github.com/elastic/eui/pull/673)) +**Bug fixes** + +- Fixed `EuiCard` `icon` prop to include user provided className ([#684](https://github.com/elastic/eui/pull/684)) + ## [`0.0.42`](https://github.com/elastic/eui/tree/v0.0.42) - Added `EuiDatePicker` component for date/time input ([#644](https://github.com/elastic/eui/pull/644)) diff --git a/src/components/card/__snapshots__/card.test.js.snap b/src/components/card/__snapshots__/card.test.js.snap index fda255940d0..4b8da3aaff0 100644 --- a/src/components/card/__snapshots__/card.test.js.snap +++ b/src/components/card/__snapshots__/card.test.js.snap @@ -1,5 +1,125 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`EuiCard icon 1`] = ` +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Card title + +
+

+ Card description +

+
+
+ +
+`; + exports[`EuiCard is rendered 1`] = `
{ test('is rendered', () => { @@ -14,6 +20,19 @@ describe('EuiCard', () => { .toMatchSnapshot(); }); + test('icon', () => { + const component = render( + } + /> + ); + + expect(component) + .toMatchSnapshot(); + }); + describe('onClick', () => { it('supports onClick as a link', () => { const handler = jest.fn();