mirror of
https://github.com/elastic/kibana.git
synced 2025-04-18 23:21:39 -04:00
[APM] Fix fold/unfold button in traces waterfall explorer not clickable (#216972)
## Summary Fixes #216790 This PR fixes the z-indexes changed in the [emotion migration PR](https://github.com/elastic/kibana/pull/204222/files#diff-1c8129b4d0bdfead8d9fef09ba4344527629cb71cb52e920739fa85f17b5b36e), using the same value (2000) as before. Also it uses EuiButtonIcon instead of EuiButtonEmpty and aligns its content. ## Before  ## After 
This commit is contained in:
parent
8ff4a35ff0
commit
cc4ed13cb5
1 changed files with 7 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { EuiButtonEmpty, EuiCallOut, useEuiTheme } from '@elastic/eui';
|
||||
import { EuiButtonIcon, EuiCallOut, useEuiTheme } from '@elastic/eui';
|
||||
import { css } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
@ -122,16 +122,19 @@ export function Waterfall({
|
|||
display: flex;
|
||||
position: sticky;
|
||||
top: var(--euiFixedHeadersOffset, 0);
|
||||
z-index: ${euiTheme.levels.content};
|
||||
z-index: ${euiTheme.levels.menu};
|
||||
background-color: ${euiTheme.colors.emptyShade};
|
||||
border-bottom: 1px solid ${euiTheme.colors.mediumShade};
|
||||
`}
|
||||
>
|
||||
<EuiButtonEmpty
|
||||
<EuiButtonIcon
|
||||
data-test-subj="apmWaterfallButton"
|
||||
size="m"
|
||||
css={css`
|
||||
position: absolute;
|
||||
z-index: ${euiTheme.levels.content};
|
||||
z-index: ${euiTheme.levels.menu};
|
||||
padding: ${euiTheme.size.m};
|
||||
width: auto;
|
||||
`}
|
||||
aria-label={i18n.translate('xpack.apm.waterfall.foldButton.ariaLabel', {
|
||||
defaultMessage: 'Click to {isAccordionOpen} the waterfall',
|
||||
|
|
Loading…
Add table
Reference in a new issue