From be02102a3c425b0ba427fde1c37926f8a0aa13fd Mon Sep 17 00:00:00 2001 From: claracruz Date: Thu, 30 May 2019 16:08:06 +0100 Subject: [PATCH] EuiToast title prop should accept a node (#1978) resolce conflicts --- CHANGELOG.md | 1 + src/components/toast/global_toast_list.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f49a3860691..6ae8aa9b561 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Fixed environment setup for running `test-unit` script on Windows ([#1971](https://github.com/elastic/eui/pull/1971)) - Fixed focus on single selection of EuiComboBox ([#1965](https://github.com/elastic/eui/pull/1965)) +- Fixed type mismatch between PropType and TypeScript def for `EuiGlobalToastList` toast `title` ([#1978](https://github.com/elastic/eui/pull/1978)) ## [`11.2.1`](https://github.com/elastic/eui/tree/v11.2.1) diff --git a/src/components/toast/global_toast_list.js b/src/components/toast/global_toast_list.js index cf9edeada0b..ab913478fac 100644 --- a/src/components/toast/global_toast_list.js +++ b/src/components/toast/global_toast_list.js @@ -35,7 +35,7 @@ export class EuiGlobalToastList extends Component { PropTypes.shape({ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) .isRequired, - title: PropTypes.string, + title: PropTypes.node, text: PropTypes.node, color: PropTypes.string, iconType: IconPropType,