mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
Fix theming in Explore west panel - Search Input
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
QueryFormData,
|
||||
styled,
|
||||
t,
|
||||
useTheme,
|
||||
} from '@superset-ui/core';
|
||||
|
||||
import { ControlConfig } from '@superset-ui/chart-controls';
|
||||
@@ -276,18 +277,20 @@ export default function DataSourcePanel({
|
||||
datasource.type &&
|
||||
saveableDatasets[datasource.type as keyof typeof saveableDatasets];
|
||||
|
||||
const theme = useTheme();
|
||||
const mainBody = useMemo(
|
||||
() => (
|
||||
<>
|
||||
<Input
|
||||
allowClear
|
||||
onChange={evt => {
|
||||
setInputValue(evt.target.value);
|
||||
}}
|
||||
value={inputValue}
|
||||
className="form-control input-md"
|
||||
placeholder={t('Search Metrics & Columns')}
|
||||
/>
|
||||
<div style={{ padding: theme.sizeUnit * 4 }}>
|
||||
<Input
|
||||
allowClear
|
||||
onChange={evt => {
|
||||
setInputValue(evt.target.value);
|
||||
}}
|
||||
value={inputValue}
|
||||
placeholder={t('Search Metrics & Columns')}
|
||||
/>
|
||||
</div>
|
||||
<div className="field-selections" data-test="fieldSelections">
|
||||
{datasourceIsSaveable && showInfoboxCheck() && (
|
||||
<StyledInfoboxWrapper>
|
||||
|
||||
Reference in New Issue
Block a user