mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Remove explicit close button (#20044)
This commit is contained in:
parent
508df9e67e
commit
268c28af6c
3 changed files with 0 additions and 85 deletions
|
@ -41,18 +41,6 @@ exports[`DetailDrawer component If vertices shows basic info and no stats for if
|
|||
</h2>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
component="div"
|
||||
grow={false}
|
||||
>
|
||||
<EuiButtonIcon
|
||||
aria-label="Close"
|
||||
color="text"
|
||||
iconType="cross"
|
||||
onClick={[MockFunction]}
|
||||
type="button"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
@ -121,18 +109,6 @@ exports[`DetailDrawer component Plugin vertices Plugin does not have explicit ID
|
|||
</h2>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
component="div"
|
||||
grow={false}
|
||||
>
|
||||
<EuiButtonIcon
|
||||
aria-label="Close"
|
||||
color="text"
|
||||
iconType="cross"
|
||||
onClick={[MockFunction]}
|
||||
type="button"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
@ -423,18 +399,6 @@ exports[`DetailDrawer component Plugin vertices Plugin has explicit ID shows bas
|
|||
</h2>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
component="div"
|
||||
grow={false}
|
||||
>
|
||||
<EuiButtonIcon
|
||||
aria-label="Close"
|
||||
color="text"
|
||||
iconType="cross"
|
||||
onClick={[MockFunction]}
|
||||
type="button"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
@ -721,18 +685,6 @@ exports[`DetailDrawer component Queue vertices shows basic info and no stats for
|
|||
</h2>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
component="div"
|
||||
grow={false}
|
||||
>
|
||||
<EuiButtonIcon
|
||||
aria-label="Close"
|
||||
color="text"
|
||||
iconType="cross"
|
||||
onClick={[MockFunction]}
|
||||
type="button"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
@ -789,18 +741,6 @@ exports[`DetailDrawer component shows vertex title 1`] = `
|
|||
<h2 />
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
component="div"
|
||||
grow={false}
|
||||
>
|
||||
<EuiButtonIcon
|
||||
aria-label="Close"
|
||||
color="text"
|
||||
iconType="cross"
|
||||
onClick={[MockFunction]}
|
||||
type="button"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
|
|
@ -32,22 +32,6 @@ describe('DetailDrawer component', () => {
|
|||
expect(renderedComponent).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('calls onHide function when close button is clicked', () => {
|
||||
const vertex = {
|
||||
title: 'grok'
|
||||
};
|
||||
|
||||
const component = (
|
||||
<DetailDrawer
|
||||
vertex={vertex}
|
||||
onHide={onHide}
|
||||
/>
|
||||
);
|
||||
const renderedComponent = shallow(component);
|
||||
renderedComponent.find('EuiButtonIcon').simulate('click');
|
||||
expect(onHide.mock.calls.length).toEqual(1);
|
||||
});
|
||||
|
||||
describe('Plugin vertices', () => {
|
||||
describe('Plugin has explicit ID', () => {
|
||||
test('shows basic info and stats for plugin, including explicit ID', () => {
|
||||
|
|
|
@ -19,7 +19,6 @@ import {
|
|||
EuiCodeBlock,
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiButtonIcon,
|
||||
EuiSpacer,
|
||||
EuiBadge,
|
||||
} from '@elastic/eui';
|
||||
|
@ -280,14 +279,6 @@ export function DetailDrawer({ vertex, onHide, timeseriesTooltipXValueFormatter
|
|||
<h2>{ renderTitle(vertex) }</h2>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiButtonIcon
|
||||
onClick={onHide}
|
||||
iconType="cross"
|
||||
color="text"
|
||||
aria-label="Close"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutHeader>
|
||||
<EuiFlyoutBody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue