diff --git a/CHANGELOG.md b/CHANGELOG.md index acd3806ae8a..844e7baf307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # [`master`](https://github.com/elastic/eui/tree/master) - EuiButton, EuiButtonEmpty and EuiButtonIcon can now take an `href` [(#316)](https://github.com/elastic/eui/pull/316) +- In `EuiSideNav`, allow a callback to be passed that renders the individual items in the navigation. This makes interoperability with e.g. `react-router` easier. [#310](https://github.com/elastic/eui/pull/310) **Bug fixes** diff --git a/src/components/side_nav/__snapshots__/side_nav.test.js.snap b/src/components/side_nav/__snapshots__/side_nav.test.js.snap index 3b22e955384..93cf92eb247 100644 --- a/src/components/side_nav/__snapshots__/side_nav.test.js.snap +++ b/src/components/side_nav/__snapshots__/side_nav.test.js.snap @@ -241,7 +241,90 @@ exports[`EuiSideNav items is rendered 1`] = ` `; -exports[`EuiSideNav items renders items with are links 1`] = ` +exports[`EuiSideNav items renders items using a specified callback 1`] = ` + +`; + +exports[`EuiSideNav items renders items which are links 1`] = `