From 2dd24240871a3e8a14de20ffb7ba439123ca85ff Mon Sep 17 00:00:00 2001 From: Ashik Meerankutty Date: Mon, 7 Sep 2020 22:47:05 +0530 Subject: [PATCH] [EuiExpression] Allow the use of descriptions only (#4014) * Make value field not required * Updated snpashot * changelog --- CHANGELOG.md | 1 + .../__snapshots__/expression.test.tsx.snap | 15 +++++++++++++++ src/components/expression/expression.test.tsx | 12 ++++++++++++ src/components/expression/expression.tsx | 10 ++++++---- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30f38cddb00..517d3540ae9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Changed `value` prop in `EuiExpression` to not required ([#4014](https://github.com/elastic/eui/pull/4014)) - Added `fold` and `unfold` glyphs to `EuiIcon` ([#3994](https://github.com/elastic/eui/pull/3994)) **Bug fixes** diff --git a/src/components/expression/__snapshots__/expression.test.tsx.snap b/src/components/expression/__snapshots__/expression.test.tsx.snap index 9d97367d008..191c32ab740 100644 --- a/src/components/expression/__snapshots__/expression.test.tsx.snap +++ b/src/components/expression/__snapshots__/expression.test.tsx.snap @@ -276,6 +276,21 @@ exports[`EuiExpression props uppercase true renders uppercase 1`] = ` `; +exports[`EuiExpression render with only description 1`] = ` + +`; + exports[`EuiExpression renders 1`] = `