diff --git a/CHANGELOG.md b/CHANGELOG.md index f3e1ee46211..cdcc5f64459 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # [`master`](https://github.com/elastic/eui/tree/master) +- Updated `EuiDescriptionList` to accept nodes for the titles and descriptions ([#552](https://github.com/elastic/eui/pull/552)) - Added `stop` and `stopFilled` icons ([#543](https://github.com/elastic/eui/pull/543)) **Bug fixes** diff --git a/src/components/description_list/__snapshots__/description_list.test.js.snap b/src/components/description_list/__snapshots__/description_list.test.js.snap index d894163cb8e..69bf3502b75 100644 --- a/src/components/description_list/__snapshots__/description_list.test.js.snap +++ b/src/components/description_list/__snapshots__/description_list.test.js.snap @@ -28,7 +28,7 @@ exports[`EuiDescriptionList props compressed is rendered 1`] = ` /> `; -exports[`EuiDescriptionList props listItems is rendered 1`] = ` +exports[`EuiDescriptionList props listItems is rendered as strings and elements 1`] = `
@@ -45,12 +45,16 @@ exports[`EuiDescriptionList props listItems is rendered 1`] = `
- Title 2 + + Title 2 +
- Description 2 + + Description 2 +
{ describe('props', () => { describe('listItems', () => { - test('is rendered', () => { + test('is rendered as strings and elements', () => { const listItems = [ { title: 'Title 1', description: 'Description 1', }, { - title: 'Title 2', - description: 'Description 2', + title: Title 2, + description: Description 2, }, { title: 'Title 3',