diff --git a/changelogs/fragments/7616.yml b/changelogs/fragments/7616.yml new file mode 100644 index 000000000000..5a7980f4ebbe --- /dev/null +++ b/changelogs/fragments/7616.yml @@ -0,0 +1,2 @@ +Refactor: +- [Look&Feel] Use semantic headers for page, modal, & flyouts across the board ([#7616](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7616)) \ No newline at end of file diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap b/src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap index 10b799a986b8..0d03ea8c3a43 100644 --- a/src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap +++ b/src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap @@ -1,7 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`PageTitle should render normally 1`] = ` - +

diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx b/src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx index 6f5bc57cd703..0a3f8673fadc 100644 --- a/src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx +++ b/src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx @@ -34,7 +34,7 @@ import { FormattedMessage } from '@osd/i18n/react'; export const PageTitle = () => { return ( - +

diff --git a/src/plugins/console/public/application/components/__snapshots__/import_flyout.test.tsx.snap b/src/plugins/console/public/application/components/__snapshots__/import_flyout.test.tsx.snap index 04bb8ddcff99..a348861e438b 100644 --- a/src/plugins/console/public/application/components/__snapshots__/import_flyout.test.tsx.snap +++ b/src/plugins/console/public/application/components/__snapshots__/import_flyout.test.tsx.snap @@ -27,23 +27,25 @@ exports[`ImportFlyout Component renders correctly 1`] = `
- -

- - - Import queries - - -

-
+

+ + + Import queries + + +

+
+
diff --git a/src/plugins/console/public/application/components/help_panel.tsx b/src/plugins/console/public/application/components/help_panel.tsx index 1f0fce03bf14..14736b7ced0c 100644 --- a/src/plugins/console/public/application/components/help_panel.tsx +++ b/src/plugins/console/public/application/components/help_panel.tsx @@ -30,14 +30,7 @@ import React from 'react'; import { FormattedMessage } from '@osd/i18n/react'; -import { - EuiText, - EuiFlyout, - EuiFlyoutHeader, - EuiFlyoutBody, - EuiTitle, - EuiSpacer, -} from '@elastic/eui'; +import { EuiText, EuiFlyout, EuiFlyoutHeader, EuiFlyoutBody, EuiSpacer } from '@elastic/eui'; import { EditorExample } from './editor_example'; interface Props { @@ -48,11 +41,11 @@ export function HelpPanel(props: Props) { return ( - +

-
+
diff --git a/src/plugins/console/public/application/components/import_flyout.tsx b/src/plugins/console/public/application/components/import_flyout.tsx index 5bfefb307dc6..0dd0112048e1 100644 --- a/src/plugins/console/public/application/components/import_flyout.tsx +++ b/src/plugins/console/public/application/components/import_flyout.tsx @@ -6,7 +6,6 @@ import { EuiFlyout, EuiFlyoutHeader, - EuiTitle, EuiFlyoutBody, EuiFlyoutFooter, EuiCallOut, @@ -276,14 +275,14 @@ export const ImportFlyout = ({ close, refresh }: ImportFlyoutProps) => { return ( - +

-
+
diff --git a/src/plugins/console/public/application/components/settings_modal.tsx b/src/plugins/console/public/application/components/settings_modal.tsx index d97b7c72a03f..ccfc4ffc38da 100644 --- a/src/plugins/console/public/application/components/settings_modal.tsx +++ b/src/plugins/console/public/application/components/settings_modal.tsx @@ -45,6 +45,7 @@ import { EuiModalHeader, EuiModalHeaderTitle, EuiCompressedSwitch, + EuiText, } from '@elastic/eui'; import { DevToolsSettings } from '../../services'; @@ -179,7 +180,14 @@ export function DevToolsSettingsModal(props: Props) { > - + +

+ +

+
diff --git a/src/plugins/data_source_management/public/components/create_data_source_wizard/components/header/header.tsx b/src/plugins/data_source_management/public/components/create_data_source_wizard/components/header/header.tsx index cc8c2cf086da..3c821f78e511 100644 --- a/src/plugins/data_source_management/public/components/create_data_source_wizard/components/header/header.tsx +++ b/src/plugins/data_source_management/public/components/create_data_source_wizard/components/header/header.tsx @@ -5,7 +5,7 @@ import React from 'react'; -import { EuiSpacer, EuiTitle, EuiText, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; +import { EuiSpacer, EuiText, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { FormattedMessage } from '@osd/i18n/react'; import { useOpenSearchDashboards } from '../../../../../../opensearch_dashboards_react/public'; @@ -25,7 +25,7 @@ export const Header = () => {
- +

{ { /> }

-
+

diff --git a/src/plugins/data_source_management/public/components/data_source_creation_panel/__snapshots__/create_data_source_panel_header.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_creation_panel/__snapshots__/create_data_source_panel_header.test.tsx.snap index 37a770d5b362..19d3207a3bac 100644 --- a/src/plugins/data_source_management/public/components/data_source_creation_panel/__snapshots__/create_data_source_panel_header.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_creation_panel/__snapshots__/create_data_source_panel_header.test.tsx.snap @@ -8,15 +8,17 @@ exports[`CreateDataSourcePanelHeader renders correctly 1`] = ` - -

+ +

-

- +

+
diff --git a/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.test.tsx b/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.test.tsx index 05af9a27d554..b027ef91db19 100644 --- a/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.test.tsx +++ b/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { CreateDataSourcePanelHeader } from './create_data_source_panel_header'; -import { EuiFlexGroup, EuiTitle, EuiText } from '@elastic/eui'; +import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@osd/i18n/react'; describe('CreateDataSourcePanelHeader', () => { @@ -20,11 +20,11 @@ describe('CreateDataSourcePanelHeader', () => { test('contains correct title and description', () => { const wrapper = shallowComponent(); - const titleMessage = wrapper.find(EuiTitle).find(FormattedMessage); + const titleMessage = wrapper.find(EuiText).at(0).find(FormattedMessage); expect(titleMessage.prop('id')).toEqual('dataSourcesManagement.createDataSourcePanel.title'); expect(titleMessage.prop('defaultMessage')).toEqual('Create Data Source'); - const descriptionMessage = wrapper.find(EuiText).find(FormattedMessage); + const descriptionMessage = wrapper.find(EuiText).at(1).find(FormattedMessage); expect(descriptionMessage.prop('id')).toEqual( 'dataSourcesManagement.createDataSourcePanel.description' ); diff --git a/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.tsx b/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.tsx index ac3cec5cdddc..c34ce5d7c19c 100644 --- a/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.tsx +++ b/src/plugins/data_source_management/public/components/data_source_creation_panel/create_data_source_panel_header.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText, EuiTitle } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; import { FormattedMessage } from '@osd/i18n/react'; @@ -11,14 +11,14 @@ export const CreateDataSourcePanelHeader: React.FC = () => { return ( - -

+ +

-

- +

+

diff --git a/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_page_header.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_page_header.test.tsx.snap index ab527a7307f6..c60e9c5cbe65 100644 --- a/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_page_header.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_page_header.test.tsx.snap @@ -8,15 +8,17 @@ exports[`DataSourceHeader renders correctly 1`] = ` - -

+ +

-

- +

+
diff --git a/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.test.tsx b/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.test.tsx index 8773bb0b3055..ca9d959e01e9 100644 --- a/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.test.tsx +++ b/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.test.tsx @@ -6,7 +6,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { DataSourceHeader } from './data_source_page_header'; -import { EuiTitle, EuiText } from '@elastic/eui'; +import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@osd/i18n/react'; describe('DataSourceHeader', () => { @@ -25,12 +25,11 @@ describe('DataSourceHeader', () => { test('contains correct title and description', () => { const wrapper = shallowComponent(); - - const titleMessage = wrapper.find(EuiTitle).find(FormattedMessage); + const titleMessage = wrapper.find(EuiText).at(0).find(FormattedMessage); expect(titleMessage.prop('id')).toEqual('dataSourcesManagement.dataSourcesTable.title'); expect(titleMessage.prop('defaultMessage')).toEqual('Data Sources'); - const descriptionMessage = wrapper.find(EuiText).find(FormattedMessage); + const descriptionMessage = wrapper.find(EuiText).at(1).find(FormattedMessage); expect(descriptionMessage.prop('id')).toEqual( 'dataSourcesManagement.dataSourcesTable.description' ); diff --git a/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.tsx b/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.tsx index 9fa99fa9296d..d737a5a19182 100644 --- a/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.tsx +++ b/src/plugins/data_source_management/public/components/data_source_home_panel/data_source_page_header.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText, EuiTitle } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; import { FormattedMessage } from '@osd/i18n/react'; import { RouteComponentProps } from 'react-router-dom'; @@ -14,14 +14,14 @@ export const DataSourceHeader: React.FC = () => { return ( - -

+ +

-

- +

+

diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_creation/create/create_acceleration_header.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_creation/create/create_acceleration_header.tsx index 57a887fbe275..dc99a71aff6b 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_creation/create/create_acceleration_header.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_creation/create/create_acceleration_header.tsx @@ -3,14 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { - EuiLink, - EuiPageHeader, - EuiPageHeaderSection, - EuiSpacer, - EuiText, - EuiTitle, -} from '@elastic/eui'; +import { EuiLink, EuiPageHeader, EuiPageHeaderSection, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; import { OPENSEARCH_ACC_DOCUMENTATION_URL } from '../../../constants'; @@ -19,9 +12,9 @@ export const CreateAccelerationHeader = () => {

- +

Accelerate data

-
+
diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/connection_detail/direct_query_connection_detail.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/connection_detail/direct_query_connection_detail.tsx index 0d8e9c98222e..0b67b4e11797 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/connection_detail/direct_query_connection_detail.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/connection_detail/direct_query_connection_detail.tsx @@ -11,7 +11,6 @@ import { EuiPageHeaderSection, EuiFlexGroup, EuiFlexItem, - EuiTitle, EuiPanel, EuiSpacer, EuiText, @@ -434,9 +433,9 @@ export const DirectQueryDataConnectionDetail: React.FC - +

{datasourceDetails.name}

-
+
diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/configure_amazon_s3_data_source.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/configure_amazon_s3_data_source.test.tsx.snap index fcff59af7cba..43a97eea699d 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/configure_amazon_s3_data_source.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/configure_amazon_s3_data_source.test.tsx.snap @@ -148,13 +148,17 @@ exports[`ConfigureS3DatasourcePanel renders correctly 1`] = `
- -

+
- Configure Amazon S3 data source -

-
+

+ Configure Amazon S3 data source +

+
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/review_amazon_s3_data_source.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/review_amazon_s3_data_source.test.tsx.snap index 72b9a71e6449..1283d828b769 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/review_amazon_s3_data_source.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/__snapshots__/review_amazon_s3_data_source.test.tsx.snap @@ -57,14 +57,19 @@ exports[`ReviewS3Datasource renders correctly 1`] = `
- -

+
- Review Amazon S3 data source configuration -

-
+

+ Review Amazon S3 data source configuration +

+
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/configure_amazon_s3_data_source.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/configure_amazon_s3_data_source.tsx index 535298693e5e..7eeeda357304 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/configure_amazon_s3_data_source.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/configure_amazon_s3_data_source.tsx @@ -86,9 +86,9 @@ export const ConfigureS3DatasourcePanel: React.FC = return (
- +

{`Configure Amazon S3 data source`}

-
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/review_amazon_s3_data_source.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/review_amazon_s3_data_source.tsx index 0a13bbedbec6..8b6adfd0ef32 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/review_amazon_s3_data_source.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/amazon_s3/review_amazon_s3_data_source.tsx @@ -5,7 +5,6 @@ import { EuiPanel, - EuiTitle, EuiSpacer, EuiText, EuiFlexGroup, @@ -41,9 +40,9 @@ export const ReviewS3Datasource = (props: ConfigureS3DatasourceProps) => { return (
- +

{`Review Amazon S3 data source configuration`}

-
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/configure_prometheus_data_source.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/configure_prometheus_data_source.test.tsx.snap index c49c259f8cf9..2032dacce601 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/configure_prometheus_data_source.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/configure_prometheus_data_source.test.tsx.snap @@ -74,13 +74,17 @@ exports[`ConfigurePrometheusDatasourcePanel renders correctly 1`] = `
- -

+
- Configure Prometheus data source -

-
+

+ Configure Prometheus data source +

+
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/review_prometheus_data_source.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/review_prometheus_data_source.test.tsx.snap index 15e5117c99f1..3f8efc268957 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/review_prometheus_data_source.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/__snapshots__/review_prometheus_data_source.test.tsx.snap @@ -57,14 +57,19 @@ exports[`ReviewPrometheusDatasource renders correctly 1`] = `
- -

+
- Review Prometheus data source configuration -

-
+

+ Review Prometheus data source configuration +

+
+ diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/configure_prometheus_data_source.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/configure_prometheus_data_source.tsx index 4c15364e129d..3d1b02bb60ac 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/configure_prometheus_data_source.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/configure_prometheus_data_source.tsx @@ -5,7 +5,6 @@ import { EuiPanel, - EuiTitle, EuiSpacer, EuiText, EuiLink, @@ -88,9 +87,9 @@ export const ConfigurePrometheusDatasourcePanel = (props: ConfigurePrometheusDat return (
- -

{`Configure Prometheus data source`}

-
+ +

{`Configure Prometheus data source`}

+
{`Connect to Prometheus with OpenSearch and OpenSearch Dashboards. `} diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/review_prometheus_data_source.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/review_prometheus_data_source.tsx index 02fad81a98ae..3fea8702d813 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/review_prometheus_data_source.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/prometheus/review_prometheus_data_source.tsx @@ -5,7 +5,6 @@ import { EuiPanel, - EuiTitle, EuiSpacer, EuiText, EuiFlexGroup, @@ -41,9 +40,9 @@ export const ReviewPrometheusDatasource = (props: ConfigurePrometheusDatasourceP return (
- +

{`Review Prometheus data source configuration`}

-
+ diff --git a/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx b/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx index 8e016a80299e..cd81bd0e6e69 100644 --- a/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx +++ b/src/plugins/data_source_management/public/components/edit_data_source/components/header/header.tsx @@ -7,7 +7,6 @@ import React, { useState } from 'react'; import { EuiSpacer, - EuiTitle, EuiFlexItem, EuiFlexGroup, EuiToolTip, @@ -15,6 +14,7 @@ import { EuiConfirmModal, EuiSmallButton, EuiSmallButtonEmpty, + EuiText, } from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { FormattedMessage } from '@osd/i18n/react'; @@ -166,9 +166,9 @@ export const Header = ({ {/* Title */}
- +

{dataSourceName}

-
+
diff --git a/src/plugins/home/public/application/components/tutorial_directory.js b/src/plugins/home/public/application/components/tutorial_directory.js index d9ddcc167e05..e2569c76739e 100644 --- a/src/plugins/home/public/application/components/tutorial_directory.js +++ b/src/plugins/home/public/application/components/tutorial_directory.js @@ -44,8 +44,8 @@ import { EuiFlexGrid, EuiFlexGroup, EuiSpacer, - EuiTitle, EuiPageBody, + EuiText, } from '@elastic/eui'; import { getTutorials } from '../load_tutorials'; @@ -280,14 +280,14 @@ class TutorialDirectoryUi extends React.Component { <> - +

-
+
{headerLinks ? {headerLinks} : null}
diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/__snapshots__/header.test.tsx.snap b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/__snapshots__/header.test.tsx.snap index 8d2423121710..35c9543af3c7 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/__snapshots__/header.test.tsx.snap +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/__snapshots__/header.test.tsx.snap @@ -23,24 +23,28 @@ exports[`Header should render a different name, prompt, and beta tag if provided } >
- -

+
- Create test index pattern - - - + Create test index pattern + + - Beta - - -

-
+ + Beta + + +

+ +
@@ -158,13 +162,17 @@ exports[`Header should render normally 1`] = ` indexPatternName="test index pattern" >
- -

+
- Create test index pattern -

-
+

+ Create test index pattern +

+
+
@@ -272,13 +280,17 @@ exports[`Header should render without including system indices 1`] = ` indexPatternName="test index pattern" >
- -

+
- Create test index pattern -

-
+

+ Create test index pattern +

+
+ diff --git a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx index 8caffa19ed9a..5a0ab5018d2e 100644 --- a/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx +++ b/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/header/header.tsx @@ -30,7 +30,7 @@ import React from 'react'; -import { EuiBetaBadge, EuiSpacer, EuiTitle, EuiText, EuiCode, EuiLink } from '@elastic/eui'; +import { EuiBetaBadge, EuiSpacer, EuiText, EuiCode, EuiLink } from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { FormattedMessage } from '@osd/i18n/react'; @@ -63,7 +63,7 @@ export const Header = ({ return (
- +

{createIndexPatternHeader} {isBeta ? ( @@ -77,7 +77,7 @@ export const Header = ({ ) : null}

-
+

diff --git a/src/plugins/index_pattern_management/public/components/edit_index_pattern/index_header/index_header.tsx b/src/plugins/index_pattern_management/public/components/edit_index_pattern/index_header/index_header.tsx index 4bb917be4955..386e0d840e1d 100644 --- a/src/plugins/index_pattern_management/public/components/edit_index_pattern/index_header/index_header.tsx +++ b/src/plugins/index_pattern_management/public/components/edit_index_pattern/index_header/index_header.tsx @@ -30,7 +30,7 @@ import React from 'react'; import { i18n } from '@osd/i18n'; -import { EuiFlexGroup, EuiToolTip, EuiFlexItem, EuiTitle, EuiSmallButtonIcon } from '@elastic/eui'; +import { EuiFlexGroup, EuiToolTip, EuiFlexItem, EuiSmallButtonIcon, EuiText } from '@elastic/eui'; import { IIndexPattern } from 'src/plugins/data/public'; interface IndexHeaderProps { @@ -81,9 +81,9 @@ export function IndexHeader({ return ( - +

{indexPattern.title}

- +
diff --git a/src/plugins/index_pattern_management/public/components/index_pattern_table/index_pattern_table.tsx b/src/plugins/index_pattern_management/public/components/index_pattern_table/index_pattern_table.tsx index f4e0437824cd..aad835bacdb7 100644 --- a/src/plugins/index_pattern_management/public/components/index_pattern_table/index_pattern_table.tsx +++ b/src/plugins/index_pattern_management/public/components/index_pattern_table/index_pattern_table.tsx @@ -38,7 +38,6 @@ import { EuiText, EuiBadgeGroup, EuiPageContent, - EuiTitle, } from '@elastic/eui'; import { FormattedMessage } from '@osd/i18n/react'; import { withRouter, RouteComponentProps } from 'react-router-dom'; @@ -265,9 +264,9 @@ export const IndexPatternTable = ({ canSave, history }: Props) => { - -

{title}

-
+ +

{title}

+

diff --git a/src/plugins/management_overview/public/__snapshots__/application.test.tsx.snap b/src/plugins/management_overview/public/__snapshots__/application.test.tsx.snap index 666f1b50c696..cf5d62327a33 100644 --- a/src/plugins/management_overview/public/__snapshots__/application.test.tsx.snap +++ b/src/plugins/management_overview/public/__snapshots__/application.test.tsx.snap @@ -8,13 +8,15 @@ exports[`Overview page rendering should render normally 1`] = `

-

- - Overview - -

+

+ + Overview + +

+
diff --git a/src/plugins/management_overview/public/application.tsx b/src/plugins/management_overview/public/application.tsx index 805c43081fdd..528cc418ab98 100644 --- a/src/plugins/management_overview/public/application.tsx +++ b/src/plugins/management_overview/public/application.tsx @@ -6,7 +6,7 @@ import ReactDOM from 'react-dom'; import { I18nProvider, FormattedMessage } from '@osd/i18n/react'; import React, { useMemo } from 'react'; -import { EuiFlexGrid, EuiFlexItem, EuiPage, EuiPageBody, EuiSpacer, EuiTitle } from '@elastic/eui'; +import { EuiFlexGrid, EuiFlexItem, EuiPage, EuiPageBody, EuiSpacer, EuiText } from '@elastic/eui'; import useObservable from 'react-use/lib/useObservable'; import { ApplicationStart, AppNavLinkStatus, CoreStart } from '../../../core/public'; import { OverviewApp } from '.'; @@ -31,11 +31,11 @@ export function ManagementOverviewWrapper(props: ManagementOverviewProps) { return ( - +

-
+ {availableApps?.map((app) => ( diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap index 45deb7c2f2f4..911839e621b6 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap @@ -837,15 +837,21 @@ exports[`SavedObjectsTable export should allow the user to choose when exporting > - + +

+ +

+
diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap index 4329f6164ff8..e0d7f197c88e 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap @@ -8,8 +8,8 @@ exports[`Flyout conflicts should allow conflict resolution 1`] = ` -

-
+
-

-
+ -

-
+ @@ -692,8 +692,8 @@ exports[`Flyout should render import step 1`] = ` -

-
+
diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap index 43cf0823c827..2ec785fe8dec 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap @@ -7,14 +7,14 @@ exports[`Relationships from legacy app should render dashboards normally 1`] = ` -

MyDashboard

-
+
@@ -155,14 +155,14 @@ exports[`Relationships from legacy app should render errors 1`] = ` -

MyDashboard

-
+
-

MyIndexPattern*

-
+
@@ -343,14 +343,14 @@ exports[`Relationships from legacy app should render searches normally 1`] = ` -

MySearch

-
+
@@ -496,14 +496,14 @@ exports[`Relationships from legacy app should render visualizations normally 1`] -

MyViz

-
+
@@ -644,14 +644,14 @@ exports[`Relationships should render augment-vis objects normally 1`] = ` -

MyAugmentVisObject

-
+
@@ -778,14 +778,14 @@ exports[`Relationships should render dashboards normally 1`] = ` -

MyDashboard

-
+
@@ -926,14 +926,14 @@ exports[`Relationships should render errors 1`] = ` -

MyDashboard

-
+
-

MyIndexPattern*

-
+
@@ -1114,14 +1114,14 @@ exports[`Relationships should render searches normally 1`] = ` -

MySearch

-
+
@@ -1267,14 +1267,14 @@ exports[`Relationships should render visualizations normally 1`] = ` -

MyViz

-
+
diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx index 074a185390cc..38226d85399a 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx @@ -1027,14 +1027,14 @@ export class Flyout extends Component { return ( - +

-
+
diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx index 0115111da0ac..480cb9758c12 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx @@ -30,7 +30,6 @@ import React, { Component } from 'react'; import { - EuiTitle, EuiFlyout, EuiFlyoutBody, EuiFlyoutHeader, @@ -336,9 +335,9 @@ export class Relationships extends Component - +

{savedObject.meta.title || getDefaultTitle(savedObject)}

-
+
{this.renderRelationships()} diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx index 7b9f1a09b49b..76d2ce72c51c 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx @@ -960,13 +960,17 @@ export class SavedObjectsTable extends Component - + +

+ +

+