Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/plugins/data/public/ui/query_string_input/_query_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@

@include kbnThemeStyle('v8') {
background-color: $euiFormBackgroundColor;
border-radius: $euiFormControlBorderRadius;

&.kbnQueryBar__textareaWrap--hasPrepend {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
&.kbnQueryBar__textareaWrap--hasAppend {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
}

Expand All @@ -35,8 +45,16 @@
}

@include kbnThemeStyle('v8') {
border-radius: 0;
padding-bottom: $euiSizeS + 1px;

&.kbnQueryBar__textarea--hasPrepend {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
&.kbnQueryBar__textarea--hasAppend {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}

&:not(.kbnQueryBar__textarea--autoHeight):not(:invalid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,14 @@ export default class QueryStringInputUI extends Component<Props, State> {
);
const inputClassName = classNames(
'kbnQueryBar__textarea',
this.props.iconType ? 'kbnQueryBar__textarea--withIcon' : null
this.props.iconType ? 'kbnQueryBar__textarea--withIcon' : null,
this.props.prepend ? 'kbnQueryBar__textarea--hasPrepend' : null,
!this.props.disableLanguageSwitcher ? 'kbnQueryBar__textarea--hasAppend' : null
);
const inputWrapClassName = classNames(
'euiFormControlLayout__childrenWrapper kbnQueryBar__textareaWrap',
this.props.prepend ? 'kbnQueryBar__textareaWrap--hasPrepend' : null,
!this.props.disableLanguageSwitcher ? 'kbnQueryBar__textareaWrap--hasAppend' : null
);

return (
Expand Down Expand Up @@ -711,7 +718,7 @@ export default class QueryStringInputUI extends Component<Props, State> {
>
<div
role="search"
className="euiFormControlLayout__childrenWrapper kbnQueryBar__textareaWrap"
className={inputWrapClassName}
ref={this.queryBarInputDivRefInstance}
>
<EuiTextArea
Expand Down