Skip to content

Commit

Permalink
adjust waterfall chart sidebar CSS to appropriately display border (#…
Browse files Browse the repository at this point in the history
…92191) (#92342)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
  • Loading branch information
kibanamachine and dominiqueclarke authored Feb 23, 2021
1 parent 3c2fa24 commit abb9ba0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { FunctionComponent } from 'react';
import { StyledComponent } from 'styled-components';
import { EuiPanel, EuiFlexGroup, EuiFlexItem, EuiText, EuiPanelProps } from '@elastic/eui';
import { rgba } from 'polished';
import { FIXED_AXIS_HEIGHT, SIDEBAR_GROW_SIZE } from './constants';
import { FIXED_AXIS_HEIGHT } from './constants';
import { euiStyled, EuiTheme } from '../../../../../../../../../src/plugins/kibana_react/common';

interface WaterfallChartOuterContainerProps {
Expand Down Expand Up @@ -49,7 +49,7 @@ export const WaterfallChartFixedTopContainer = euiStyled(StyledScrollDiv)`
`;

export const WaterfallChartAxisOnlyContainer = euiStyled(EuiFlexItem)`
margin-left: -22px;
margin-left: -16px;
`;

export const WaterfallChartTopContainer = euiStyled(EuiFlexGroup)`
Expand Down Expand Up @@ -83,9 +83,9 @@ interface WaterfallChartSidebarContainer {
}

export const WaterfallChartSidebarWrapper = euiStyled(EuiFlexItem)`
max-width: ${SIDEBAR_GROW_SIZE * 10}%;
z-index: ${(props) => props.theme.eui.euiZLevel5};
`;
min-width: 0;
`; // NOTE: min-width: 0 ensures flexbox and no-wrap children can co-exist

export const WaterfallChartSidebarContainer = euiStyled.div<WaterfallChartSidebarContainer>`
height: ${(props) => `${props.height}px`};
Expand Down

0 comments on commit abb9ba0

Please sign in to comment.