From f1ee5ad9f666d712f076ae70f20e80ed83862f1a Mon Sep 17 00:00:00 2001 From: Hannah Mudge Date: Fri, 26 Jan 2024 08:51:55 -0700 Subject: [PATCH] Remove targeting of EUI class --- .../public/options_list/components/options_list.scss | 7 ++----- .../options_list/components/options_list_control.tsx | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/plugins/controls/public/options_list/components/options_list.scss b/src/plugins/controls/public/options_list/components/options_list.scss index ef2975a6c5369..4dca925e952ce 100644 --- a/src/plugins/controls/public/options_list/components/options_list.scss +++ b/src/plugins/controls/public/options_list/components/options_list.scss @@ -31,12 +31,9 @@ color: $euiColorDanger; } - .euiFilterButton__text { + .optionsList--selectionText { + flex-grow: 1; text-align: left; - - &-hasNotification { - flex-grow: 1; - } } } diff --git a/src/plugins/controls/public/options_list/components/options_list_control.tsx b/src/plugins/controls/public/options_list/components/options_list_control.tsx index 11683266ad2f0..5a358b29c6196 100644 --- a/src/plugins/controls/public/options_list/components/options_list_control.tsx +++ b/src/plugins/controls/public/options_list/components/options_list_control.tsx @@ -152,6 +152,7 @@ export const OptionsListControl = ({ isSelected={isPopoverOpen} numActiveFilters={validSelectionsCount} hasActiveFilters={Boolean(validSelectionsCount)} + textProps={{ className: 'optionsList--selectionText' }} > {hasSelections || existsSelected ? selectionDisplayNode