Backports the following commits to 6.x: - [Infra UI] Fix styling after breaking EUI changes (#27021)
This commit is contained in:
parent
351411fdea
commit
54be8b9a38
|
@ -15,7 +15,7 @@ import { ThemeProvider } from 'styled-components';
|
|||
|
||||
// TODO use theme provided from parentApp when kibana supports it
|
||||
import { EuiErrorBoundary } from '@elastic/eui';
|
||||
import * as euiVars from '@elastic/eui/dist/eui_theme_k6_light.json';
|
||||
import euiVars from '@elastic/eui/dist/eui_theme_k6_light.json';
|
||||
import { InfraFrontendLibs } from '../lib/lib';
|
||||
import { PageRouter } from '../routes';
|
||||
import { createStore } from '../store';
|
||||
|
|
|
@ -20,7 +20,7 @@ export const LegacyHeader: React.SFC<LegacyHeaderProps> = ({
|
|||
breadcrumbs = [],
|
||||
}) => (
|
||||
<HeaderWrapper>
|
||||
<EuiHeaderSection>
|
||||
<EuiHeaderSection grow>
|
||||
<EuiHeaderBreadcrumbs breadcrumbs={breadcrumbs} />
|
||||
</EuiHeaderSection>
|
||||
{appendSections}
|
||||
|
|
1
x-pack/plugins/infra/types/eui.d.ts
vendored
1
x-pack/plugins/infra/types/eui.d.ts
vendored
|
@ -39,6 +39,7 @@ declare module '@elastic/eui' {
|
|||
export type EuiHeaderSectionSide = 'left' | 'right';
|
||||
type EuiHeaderSectionProps = CommonProps & {
|
||||
side?: EuiHeaderSectionSide;
|
||||
grow?: boolean;
|
||||
};
|
||||
export const EuiHeaderSection: React.SFC<EuiHeaderSectionProps>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue