From 1d1e7a75af4594253bafc120c5a1befe964a267d Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Wed, 21 Jun 2023 13:37:21 -0700 Subject: [PATCH] add badgeColor to EuiFilterButton --- .../src/views/badge/notification_badge.tsx | 2 +- .../views/filter_group/filter_group_multi.js | 1 + .../__snapshots__/filter_button.test.tsx.snap | 19 +++++++++++++++++++ .../filter_group/filter_button.test.tsx | 8 ++++++++ src/components/filter_group/filter_button.tsx | 10 +++++++++- 5 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src-docs/src/views/badge/notification_badge.tsx b/src-docs/src/views/badge/notification_badge.tsx index 463144309e3..14845d6dfb8 100644 --- a/src-docs/src/views/badge/notification_badge.tsx +++ b/src-docs/src/views/badge/notification_badge.tsx @@ -7,7 +7,7 @@ import { } from '../../../../src/components'; export default () => ( - + 3 diff --git a/src-docs/src/views/filter_group/filter_group_multi.js b/src-docs/src/views/filter_group/filter_group_multi.js index 5ea1b757c4b..bf9be4d07c2 100644 --- a/src-docs/src/views/filter_group/filter_group_multi.js +++ b/src-docs/src/views/filter_group/filter_group_multi.js @@ -63,6 +63,7 @@ export default () => { const button = ( item.checked !== 'off').length} diff --git a/src/components/filter_group/__snapshots__/filter_button.test.tsx.snap b/src/components/filter_group/__snapshots__/filter_button.test.tsx.snap index 25d9224e42f..53ae7242be7 100644 --- a/src/components/filter_group/__snapshots__/filter_button.test.tsx.snap +++ b/src/components/filter_group/__snapshots__/filter_button.test.tsx.snap @@ -42,6 +42,25 @@ exports[`EuiFilterButton is rendered 1`] = ` `; +exports[`EuiFilterButton props badgeColor is rendered 1`] = ` + +`; + exports[`EuiFilterButton props grow can be turned off 1`] = `