Skip to content

Commit

Permalink
fix on data source selectable and readonly component are not consistent
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanqi(Ella) Zhu <zhyuanqi@amazon.com>
  • Loading branch information
zhyuanqi committed Apr 18, 2024
1 parent fb76ee9 commit 1830a8b
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 158 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import {
EuiSelectable,
EuiSpacer,
EuiHorizontalRule,
EuiFlyoutHeader,
EuiPopoverTitle,
} from '@elastic/eui';
import {
ApplicationStart,
Expand Down Expand Up @@ -271,13 +273,15 @@ export class DataSourceSelectable extends React.Component<
data-test-subj={'dataSourceSelectableContextMenuPopover'}
>
<EuiContextMenuPanel>
<EuiPanel className={'dataSourceSelectableOuiPanel'} color="transparent" paddingSize="s">
<EuiPanel
className={'dataSourceSelectableOuiPanel'}
color="transparent"
paddingSize="none"
>
<DataSourceDropDownHeader
totalDataSourceCount={this.state.dataSourceOptions.length}
application={this.props.application}
/>
<EuiHorizontalRule margin="none" />
<EuiSpacer size="s" />
<EuiSelectable
aria-label="Search"
searchable
Expand All @@ -299,7 +303,7 @@ export class DataSourceSelectable extends React.Component<
>
{(list, search) => (
<>
{search}
<EuiPopoverTitle paddingSize="s">{search}</EuiPopoverTitle>
{list}
</>
)}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1830a8b

Please sign in to comment.