Skip to content

Commit

Permalink
Fix z-index of logs page toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez committed Jan 10, 2020
1 parent d8f94b1 commit 06f0a37
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ import { LogFilterState } from '../../../containers/logs/log_filter';
import { LogPositionState } from '../../../containers/logs/log_position';
import { Source } from '../../../containers/source';
import { WithKueryAutocompletion } from '../../../containers/with_kuery_autocompletion';
import euiStyled from '../../../../../../common/eui_styled_components';

// We need to raise the z-index of the toolbar, so the datepicker inside is
// above the table header of the log stream.
const LogsToolbarWrapper = euiStyled(Toolbar)`
position: relative;
z-index: 2
`;

export const LogsToolbar = () => {
const { createDerivedIndexPattern } = useContext(Source.Context);
Expand Down Expand Up @@ -62,7 +70,7 @@ export const LogsToolbar = () => {
stopLiveStreaming,
} = useContext(LogPositionState.Context);
return (
<Toolbar>
<LogsToolbarWrapper>
<EuiFlexGroup alignItems="center" justifyContent="spaceBetween" gutterSize="s">
<EuiFlexItem>
<WithKueryAutocompletion indexPattern={derivedIndexPattern}>
Expand Down Expand Up @@ -133,6 +141,6 @@ export const LogsToolbar = () => {
/>
</EuiFlexItem>
</EuiFlexGroup>
</Toolbar>
</LogsToolbarWrapper>
);
};

0 comments on commit 06f0a37

Please sign in to comment.