Skip to content

Commit

Permalink
Added hard-coded, but overridable DTS to KibanaPageTemplate.pageHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed May 26, 2021
1 parent bc9899c commit ef3a963
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export const KibanaPageTemplate: FunctionComponent<KibanaPageTemplateProps> = ({
template={template}
restrictWidth={restrictWidth}
paddingSize={template === 'centeredBody' ? 'none' : 'l'}
pageHeader={pageHeader}
pageHeader={{
'data-test-subj': 'kibana-page-template-header',
...pageHeader,
}}
pageSideBar={pageSideBar}
pageSideBarProps={{
...rest.pageSideBarProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import React, { ComponentType } from 'react';
import { FormattedMessage } from '@kbn/i18n/react';
import { EuiHorizontalRule, EuiText } from '@elastic/eui';
import { EuiHorizontalRule } from '@elastic/eui';
import { KibanaPageTemplateProps } from '../../../../../../src/plugins/kibana_react/public';

interface ManagementLandingPageProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import React, { useEffect } from 'react';
import { Route, Switch } from 'react-router-dom';
import { FormattedMessage } from '@kbn/i18n/react';
import { EuiButtonEmpty, EuiPageHeader, EuiSpacer, EuiHorizontalRule } from '@elastic/eui';
import { EuiButtonEmpty } from '@elastic/eui';
import { documentationService } from '../../services/documentation';
import { DataStreamList } from './data_stream_list';
import { IndexList } from './index_list';
Expand Down

0 comments on commit ef3a963

Please sign in to comment.