Skip to content

Commit 63ee0b8

Browse files
committed
styling
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
1 parent 0ce0009 commit 63ee0b8

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

src/plugins/data/public/ui/query_editor/_language_selector.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
* Copyright OpenSearch Contributors
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
.osdQueryBar__languageSelector {
6-
font-size: small;
7-
}
5+
.languageSelector {
6+
height: 100%;
87

9-
.osdQueryBar__languageSelectorFooter {
10-
font-size: smaller;
11-
padding-left: 0;
12-
padding-top: 2px;
13-
color: $ouiTextSubduedColor;
8+
* {
9+
font-size: small;
10+
}
1411
}

src/plugins/data/public/ui/query_editor/_query_editor.scss

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,21 @@
2020
}
2121

2222
.osdQueryEditorFooter {
23-
color: $ouiTextSubduedColor; // Apply the subdued color to all text in this class
23+
color: $euiTextSubduedColor; // Apply the subdued color to all text in this class
2424
height: 35px;
2525

2626
* {
2727
color: inherit;
2828
font-size: medium;
2929
align-items: center;
3030
}
31-
32-
#languageSelector {
33-
height: 100%;
34-
}
3531
}
3632

3733
.osdQueryEditor__languageWrapper {
3834
align-items: center;
3935
justify-content: center;
4036
height: 40px;
4137
border: $euiBorderThin;
42-
43-
#languageSelector {
44-
height: 100%;
45-
}
4638
}
4739

4840
.osdQueryEditor__dataSourceWrapper {

src/plugins/data/public/ui/query_editor/language_selector.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,11 @@ export const QueryLanguageSelector = (props: QueryLanguageSelectorProps) => {
100100
});
101101
return (
102102
<EuiPopover
103-
id="languageSelector"
103+
className="languageSelector"
104104
button={
105105
<EuiButtonEmpty
106106
iconSide="right"
107107
onClick={onButtonClick}
108-
className={
109-
props.isFooter ? 'osdQueryBar__languageSelectorFooter' : 'osdQueryBar__languageSelector'
110-
}
111108
iconType={props.isFooter ? 'arrowDown' : undefined}
112109
>
113110
{selectedLanguage.label}

0 commit comments

Comments
 (0)