diff --git a/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss b/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss index ce96f7af77ee..740ae664c7f5 100644 --- a/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss +++ b/packages/kbn-ui-framework/src/components/local_nav/_local_search.scss @@ -26,14 +26,6 @@ border-radius: 0; border-left-width: 0; } - -.kuiLocalSearchAssistedInput { - overflow: visible !important; // Override EUI form control - display: flex; - flex: 1 1 100%; - position: relative; -} - /** * 1. em used for right padding so documentation link and query string * won't overlap if the user increases their default browser font size diff --git a/src/plugins/data/public/ui/query_string_input/_query_bar.scss b/src/plugins/data/public/ui/query_string_input/_query_bar.scss index ba464546386f..c437a4c0d9ca 100644 --- a/src/plugins/data/public/ui/query_string_input/_query_bar.scss +++ b/src/plugins/data/public/ui/query_string_input/_query_bar.scss @@ -8,6 +8,13 @@ border-right: none !important; } +.kbnQueryBar__textareaWrap { + overflow: visible !important; // Override EUI form control + display: flex; + flex: 1 1 100%; + position: relative; +} + .kbnQueryBar__textarea { z-index: $euiZContentMenu; resize: none !important; // When in the group, it will autosize @@ -20,6 +27,9 @@ &:not(:focus):not(:invalid) { @include euiYScrollWithShadows; + } + + &:not(:focus) { white-space: nowrap; overflow-y: hidden; overflow-x: hidden; diff --git a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx index 33b550d44eb8..f159cac664a9 100644 --- a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx +++ b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx @@ -610,7 +610,7 @@ export class QueryStringInputUI extends Component { >
{localFilters?.map((filter: FilterValue, idx: number) => { const { input, label, id } = filter; + const queryIsValid = isQueryValid(input, indexPattern); + return ( {(provided) => ( - + + {/* Empty for spacing */} + + + ( - {label || input.query || defaultLabel} - + )} setFilter={(f: FilterValue) => { onChangeValue(f.id, f.input, f.label); @@ -292,11 +312,14 @@ export const FilterList = ({ onRemoveFilter(filter.id); }} aria-label={i18n.translate( - 'xpack.lens.indexPattern.filters.deleteSearchQuery', + 'xpack.lens.indexPattern.filters.removeSearchQuery', { - defaultMessage: 'Delete search query', + defaultMessage: 'Remove search query', } )} + title={i18n.translate('xpack.lens.indexPattern.filters.remove', { + defaultMessage: 'Remove', + })} />