diff --git a/src/platform/plugins/shared/controls/public/control_group/components/control_panel.tsx b/src/platform/plugins/shared/controls/public/control_group/components/control_panel.tsx index 209eff17b9f1..4da13c486652 100644 --- a/src/platform/plugins/shared/controls/public/control_group/components/control_panel.tsx +++ b/src/platform/plugins/shared/controls/public/control_group/components/control_panel.tsx @@ -162,12 +162,9 @@ export const ControlPanel = - + {panelTitle || defaultPanelTitle} @@ -213,14 +210,6 @@ const controlPanelStyles = { containerHidden: css({ display: 'none', // Don't unmount, just hide }), - formLabel: css({ - padding: '0 !important', - height: '100%', - maxWidth: '100%', - overflow: 'hidden !important', - textOverflow: 'ellipsis !important', - whiteSpace: `nowrap !important` as 'nowrap', - }), formControl: ({ euiTheme }: UseEuiTheme) => css({ '.euiFormControlLayout__prepend': { @@ -277,6 +266,11 @@ const controlPanelStyles = { right: `calc(-${euiTheme.size.xs} - 1px)`, }, }, + '.controlPanel--label': { + padding: '0 !important', + height: '100%', + maxWidth: '100%', + }, }), tooltipAnchor: css({ height: '100%', diff --git a/src/platform/plugins/shared/controls/public/controls/data_controls/options_list_control/components/options_list_control.tsx b/src/platform/plugins/shared/controls/public/controls/data_controls/options_list_control/components/options_list_control.tsx index 5e0bc7c65634..e4f7b4270820 100644 --- a/src/platform/plugins/shared/controls/public/controls/data_controls/options_list_control/components/options_list_control.tsx +++ b/src/platform/plugins/shared/controls/public/controls/data_controls/options_list_control/components/options_list_control.tsx @@ -55,10 +55,14 @@ const optionListControlStyles = { font-weight: ${euiTheme.font.weight.medium}; `, invalidSelectionsToken: css({ verticalAlign: 'text-bottom' }), - filterButton: ({ euiTheme }: UseEuiTheme) => css` - font-weight: ${euiTheme.font.weight.regular} !important; - color: ${euiTheme.colors.subduedText} !important; - `, + filterButton: ({ euiTheme }: UseEuiTheme) => + css({ + fontWeight: `${euiTheme.font.weight.regular} !important` as 'normal', + color: `${euiTheme.colors.subduedText} !important`, + '&:hover::before': { + background: `${euiTheme.colors.backgroundBaseSubdued} !important`, + }, + }), filterButtonText: css({ flexGrow: 1, textAlign: 'left',